TurboCAD Forums

The Ultimate Resource for TurboCAD Knowledge

Register
 
When posting a problem be sure to include which version you are using.  Give as much information as possible.  If the problem is with a specific file be sure to attache it to your post.

Parametric Parts Reserved Word List
Read 5799 times
* October 22, 2019, 08:15:19 AM
Hello helping hands,

In the Help I find the list "Parametric Parts Reserved Word List". What I do not or only partially find are the descriptions to the word list. Where can I find the explanations of all the commands?

Thanks in advance for your help.

Logged
-----------------------------------------------------------------------------------
Very low knowledge of English - I ask for indulgence - Thanks
Currently installed
TurboCAD  Professional 32-bit V.17.2.77.1
TurboCAD 2016 ProPlatinum 64-bit V23.2-61.2 engl.
TurboCAD 2015 2D V.22.2.51.4
on Win 10.


* October 22, 2019, 08:56:32 AM
#1
If you think of ppm , then nowhere in TC :)
There is only what you find in the helpfile, the rest you will need to figure out yourself, try mimic how you would do it if you should draw the object with TC and pray for luck :)

Torfinn

Logged
V20, V21, 2015/ 16/ 17/ 18/ 19 Pro. Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB


* October 22, 2019, 08:46:44 PM
#2
Hi,

Thank you for your answer. Yes, I think of ppm.
Is there a description in or out of other programs?

I also managed to create rectangular IPE profiles. Now I would like to create I-profiles or crooked profiles.
For this I need, for example Calculations with sin, cos, tan etc.
It would be nice to know what the individual commands do.


Logged
-----------------------------------------------------------------------------------
Very low knowledge of English - I ask for indulgence - Thanks
Currently installed
TurboCAD  Professional 32-bit V.17.2.77.1
TurboCAD 2016 ProPlatinum 64-bit V23.2-61.2 engl.
TurboCAD 2015 2D V.22.2.51.4
on Win 10.


* October 23, 2019, 12:19:56 AM
#3
I believe there is some out there, but dont know where, i just remember Nikki say one time she found something elsewhere.
ppm is TC's, but there should also be an Autocad app that have ppm, so maybe worth looking for.

In PPM section here at forum there are some examples I and Nikki have put out, maybe they can give you some idea's how some of the commands work.
Anyway, do the ones in the helpfile as a good place to start, and then you will understand the basic of them.
And there is also some example within TC' s programfiles you can look at.
I used one of them to look at when i was making my "Database" for steelbeams ppm, the most common for use in house buildings.
That was one for bolt and nuts if i not remember wrong.

Nikki have also put out a pdf with how to write the different basic math function for Trigometri and Geometri, that can be handy to have
You should always remember that it is a 2D tool, where we can use Thickness, Extrude, Sweep, and rotate objects for get an 3D part.
A point is absolute and a ParameterPoint can be edited after insert the symbol
And unless you say different it will always calc from 0,0,0, and by that i always start my ppm's from there.

SoftDEV also have SD ( Symbol Designer ) that there was put out an link to in PPM section, but if it still is there and work i dont know as there have been a lot of "cleaning" in this forum the last couple of years.

SD is a little bit different then what we have here in TC, i say we have v 1 and SD is v2 of ppm's, SD will also give you better info if there is something wrong in the ppm, more understandable.

But that said, many of the commands there TC dont know how to use, but we can save end product as dwg and take in to TC, and also we can encrypt the ppm inside SD and will then get an ppe file, that will run in SD.

Torfinn

Logged
V20, V21, 2015/ 16/ 17/ 18/ 19 Pro. Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB


* October 23, 2019, 01:37:37 AM
#4
Hi,

Thanks for the feedback.

Quote: I think there are those out there ...

I hope there is someone else to the topic.  ;)

Quote: In PPM section here at forum there are some examples ...

I have already analyzed these examples, but not all commands can be found in them. Whereby a lot of useful is here.

Quote: SD (Symbol Designer) ...

Very interesting, I have to take a look. Are the commands described in the SD?
Are the versions for Win7, Win10, for which TC versions?

Logged
-----------------------------------------------------------------------------------
Very low knowledge of English - I ask for indulgence - Thanks
Currently installed
TurboCAD  Professional 32-bit V.17.2.77.1
TurboCAD 2016 ProPlatinum 64-bit V23.2-61.2 engl.
TurboCAD 2015 2D V.22.2.51.4
on Win 10.


* October 23, 2019, 04:04:11 AM
#5
This dang place just deleted all my comment i was try to send, internal server error, so one more time :)
And this time i copy before try to send.

There are not many that make ppm's in here, i know about me, Nikki, Mpavelek, Marek, Majo and Dean also if i dont remember wrong, Mpavelek do steelprofiles like you want to do.
But Nikki one time say she found some other examples someplace, but only she know where.

As i say, there are in TC's program some more examples, and you can normally find them here;
C:\Program Files\IMSIDesign\TCW2019.5\Symbols\PPM\EN

I am on a betaversion now, but adjust it to your Version and you will find them
Not everyone work, but check them out.

SD will show some small examples of how they should be written and do.
It's a betaversion, so not finish yet, nobody know when, if ever.
If it's still here its an older Version, but it should work on win 7-8 and 10
They did a "clean up" some time back, so i'm not sure what is left.
It's not connected to any TC Versions, and some of the commands there we cant use in TC as we have a very old version of ppm.

Torfinn

Logged
V20, V21, 2015/ 16/ 17/ 18/ 19 Pro. Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB


* October 23, 2019, 04:24:53 AM
#6
over the years I have added to the formulas I posted years ago .
My maths skills are very basic so a lot of this stuff might be obvious and there is more then likely an easier way to do it. but it is a starting point.
You cant find all the commands because there really aren't that many available.

The maths functions available that I use are
+,-,*,/ (and brackets the same as most programs)
asin()- returns an answer in Radians
sin() , cos(), tan() , acos(), and atan()
sqrt -square route
PI
Mod(a,b)- finds the remainder

If I need other formula , I google how to do the maths - old school style,(you can get away with high school maths) - and make a macro for future use.




« Last Edit: October 23, 2019, 05:23:52 AM by nikkipollard »

Logged
Nikki
TC20 platinum
TC 2015 platinum
TC 2017 with lightworks


* October 23, 2019, 05:02:15 AM
#7
I use this place to look for formulas, little bit commercial on the site, but no problem, it's free :)

http://www.mathopenref.com/coordparamellipse.html

Torfinn

Logged
V20, V21, 2015/ 16/ 17/ 18/ 19 Pro. Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB


* October 23, 2019, 06:18:57 AM
#8
Hello Torfinn,

Quote: This dang place ... And this time i copy before try to send.

Learning by doing. That's why I write my comments first with the editor. ;)

Quote: Examples ... C: \ Program Files \ IMSIDesign \ TCW2019.5 \ Symbols \ PPM \ EN

Of course, sorry, I had not looked here yet.
I'll look her over, I promise. ;)

Hello Nikkipollard,

Quote: My math skills are very basic, ...

I also did not attend secondary schools. But I try it anyway.
And that just before retirement.

Quote: The available mathematical functions are ...

These are still familiar to me from my school days.

Wow, great pdfs, big thanks.

To all, a big thank you again for your contributions.

And thanks for the link.

Logged
-----------------------------------------------------------------------------------
Very low knowledge of English - I ask for indulgence - Thanks
Currently installed
TurboCAD  Professional 32-bit V.17.2.77.1
TurboCAD 2016 ProPlatinum 64-bit V23.2-61.2 engl.
TurboCAD 2015 2D V.22.2.51.4
on Win 10.


* October 23, 2019, 07:59:06 AM
#9
It have been good for a long time now, and normally i can just use Undo and i come back again, copy txt and one more time, but not today.

Age are just numbers, the best guy on math in here start to be close to 85 now, so assume you still have something to go on ;):)
And you can come very far with basic Math in ppm's, also some from visual basic i believe it is, same thing they used in Excel at least earlier, like "" for else  =   Nothing, when you use an IF.

Torfinn

Logged
V20, V21, 2015/ 16/ 17/ 18/ 19 Pro. Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB


* October 23, 2019, 10:38:35 PM
#10
Hi,

"IF" so far I have not penetrated yet.  ;)

I am now testing the individual commands.

Rectangle in 2D is created, now there is
a. Thickness
b. Extrude

With Thickness the body works, why not with Extrude?

Request for enlightenment, thank you.

Logged
-----------------------------------------------------------------------------------
Very low knowledge of English - I ask for indulgence - Thanks
Currently installed
TurboCAD  Professional 32-bit V.17.2.77.1
TurboCAD 2016 ProPlatinum 64-bit V23.2-61.2 engl.
TurboCAD 2015 2D V.22.2.51.4
on Win 10.


* October 24, 2019, 12:55:03 AM
#11
Because it's not in the list, maybe it have been there earlier or i just remember wrong.
Ooops, i checked, it is there, but maybe not work, if i write it in editor the name become dark blue, so not an normal command in TC, or maybe i just write the name wrong, have tested with 3 most normal options.

Ooops 2 :), belive i write it wrong somehow, but EXTRUDE is a command, then left to figure out how it work, if it do

So then you need to use sweep for second option.

Sweep is good if the profile have curve segment like a wave in example, as thickness on that will often just give the edges, not a solid.
That is a bug in the program, and i assume never will be fixed. It dont close the profile.

Torfinn
« Last Edit: October 24, 2019, 01:37:52 AM by Torfinn »

Logged
V20, V21, 2015/ 16/ 17/ 18/ 19 Pro. Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB


* October 24, 2019, 03:59:57 AM
#12
I thought the words in the list were words you cant use for identifiers
 They aren't commands that work with PPM just those commands are used elsewhere in the TC.

I Stick to the commands with an explanation of how to use them.
EXTRUDE - doesn't seem to do anything
« Last Edit: October 24, 2019, 04:05:00 AM by nikkipollard »

Logged
Nikki
TC20 platinum
TC 2015 platinum
TC 2017 with lightworks


* October 24, 2019, 05:11:15 AM
#13
Maybe we talk about different list, i talk about the one that are in the end of Parametric Parts in the helpfile;

http://doc.imsidesign.com/articles/#!turbocad-2018-user-guide-publication/parametric-part-script-editing-1

That is the list of legal commands we are supposed to use, but others things work also like  ""  and that is from excelworld for me, aka Visual Basic or similar.

Not everything is explained, so we need to figure out what it is by ourself :)
But a good hint is how do we do it in TC if we should draw similar, but not always.

In the list we also have   **  i never figured out that one out before reading the explanation in SD.
In example 2** = (2x2) , 3** = (3x3)  (square root)

I did not figured out how EXTRUDE work if it do at all, and maybe that is the reason for i cant remember to ever used it.
Block in the list do also not work, that i know and got confirmed some years ago.

Static symbol from the same section do work.

Torfinn

Logged
V20, V21, 2015/ 16/ 17/ 18/ 19 Pro. Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB


* October 24, 2019, 09:19:55 PM
#14
Thank You Torfinn, I have tried so many common programming methods to find the square - but never that one.


Logged
Nikki
TC20 platinum
TC 2015 platinum
TC 2017 with lightworks


* October 26, 2019, 02:28:54 AM
#15
Hi,

Please excuse me, that I will contact you only now. Thanks for your contributions.

@Torfinn
Ok, I do not know what "EXTRUDE" is all about.
I deleted "EXTRUDE" from the list.

The tests with the sweep command are in progress. Can I only use closed polylines here?
Do closed polylines also work?

@Nikkipollard
The way I see it, the words are in the table
a. commands
b. Words that can not be used
That's how I would explain that.

@ Torfinn..2
Yes exactly. We talk about this list.

"Block" does not appear in the list. "Group" is pretty much at the bottom of the list.

"Static symbol", what is this command used for? Example?

________________________
@ All

As I see it, there are:
- in 2D -> rectangle, circle and polyline
- in 3D -> Thickness, sphere, cone
- Arithmetic operators
- Boolean operations
and then we're pretty much at the end to create 3D bodies.
Or in other words from the mentioned 2D / 3D objects, everything has to be created?
how do you see it?

I look forward to your opinion, thanks to all.

Logged
-----------------------------------------------------------------------------------
Very low knowledge of English - I ask for indulgence - Thanks
Currently installed
TurboCAD  Professional 32-bit V.17.2.77.1
TurboCAD 2016 ProPlatinum 64-bit V23.2-61.2 engl.
TurboCAD 2015 2D V.22.2.51.4
on Win 10.


* October 26, 2019, 04:27:27 AM
#16
Yes that is pretty much it -  you will be surprised at how much you can do with those few commands

Use the cone for a cylinder

sweep is useful too.
Use sweep on a circle or arc for a revolve or partial revolve

other commands that are useful are the "G3" commands- fillet, shell,chamfer etc

To copy items multiple times - like an array- use the move command, command with  the number of copies after the x,y and z position.

Move(item,distance x,distance y,distance z,number of copies)

for a polar array use one of the rotate commands with the last
RotateZ (item, cx, cy, number of copies)


Logged
Nikki
TC20 platinum
TC 2015 platinum
TC 2017 with lightworks


* October 26, 2019, 09:35:49 AM
#17
Hi,

Please excuse me, that I will contact you only now. Thanks for your contributions.

@Torfinn
Ok, I do not know what "EXTRUDE" is all about.
I deleted "EXTRUDE" from the list.

The tests with the sweep command are in progress. Can I only use closed polylines here?
Do closed polylines also work?

@Nikkipollard
The way I see it, the words are in the table
a. commands
b. Words that can not be used
That's how I would explain that.

@ Torfinn..2
Yes exactly. We talk about this list.

"Block" does not appear in the list. "Group" is pretty much at the bottom of the list.

"Static symbol", what is this command used for? Example?
"""""
[/quote

Extrude is a way to give something thickness, you will have choice in TC if it's one way or two, check it out in 3D Modify .
Anyway, it dont work in ppm's and in SD they dont have it at all.

Sweep is for whatever 2D profile you want, a single line a closed profile, it work anyway as long you give a path for it to follow, i norrnally use it for making something that TC dont have, and for make a 3D road in example.
And in ppm for give curved objects a thickness, basically that, else i use thickness, more easy

Block seems to be adjusted away in helpfile, it was inside the Static symbols section earlier, for me it would have been great to have it, as in my house ppm there is 12-1300 rooftiles if i turn them on, and dang that takes time :), so i made a plate with a wrapmaterial on instead and use that as default if i turn roof on.
I also have a lean on roof, there is not so many tiles there, so that is quick enough, the problem is if its more than 500 it start to slow down TC.
After i talk with SoftDev, they see the problem and added Block in SD, i dont remember the time difference anymore, but trust me it was a dramatic change, as TC draw them tile by tile and place it on by one, even inside a Group, so it do takes time :)

StaticSymbol is a way to collect objects from a drawing and use that in your ppm, in example, door handles/ nobs on doors and kitchen, that are used in some of the examples that comes with TC.

Torfinn

Logged
V20, V21, 2015/ 16/ 17/ 18/ 19 Pro. Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB


* November 04, 2019, 09:08:27 AM
#18
Hello you hardworking helper,

I would like to thank you again for your help.
Not everything I want to do succeeds me. But I am working on it.

In the picture you can see what I have already done.

Logged
-----------------------------------------------------------------------------------
Very low knowledge of English - I ask for indulgence - Thanks
Currently installed
TurboCAD  Professional 32-bit V.17.2.77.1
TurboCAD 2016 ProPlatinum 64-bit V23.2-61.2 engl.
TurboCAD 2015 2D V.22.2.51.4
on Win 10.


* November 04, 2019, 10:48:26 AM
#19
Thanks for sharing 👍, a heads up for people that believe it is so dificult, a very good job in the little time it is since you started. :)

Torfinn

Logged
V20, V21, 2015/ 16/ 17/ 18/ 19 Pro. Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB


* November 20, 2019, 11:36:42 PM
#20
Hello everybody,

First, I have to say that ppm's writing is interresting and a lot of fun.  :)

I have full of anticipation a drawing head with frame with (StaticSymbol ...) inserted and filled with the parameters.
Then I wanted to insert the drawing head in the paper area.
Unfortunately, the frame lines are not displayed. Why?

Furthermore, I wanted to:
xyz = parameter ("value", "text", TEXT, set (text1, text2, ...);
create a selection list (text list).
But it seems only with numbers? Is the statement correct?

File name: It would be nice if I could also insert the file name.
-----------------------------------------

After I scoured the SymbolDesigner for the command definitions, I found out that some (many) commands are unfortunately without a description. Or I could not find the description.

Here is a list of commands without description:
Solid
UNIQUE GraphicId VertexId
Vertex Face
Edge Source Bound
Intersect
OperationList

BlendArg BlendParam BlendType BlendRadiusMode BlendSetback BlendRadiusBlendSmooth BlendRadiusParam
BlendOffsetParam BlendFaceEntity BlendFaceEdge BlendFaceVertex BlendEdgeEdge BlendEdgeVertex
BlendEdgeVertexMain BlendEdgeVertexAux
 
ShellArg ShellThickness ShellFace ShellEdge

FaceEditArg
Transform

ShearXY ShearXZ ShearYZ
(Shear, Shirring: I've been testing for hours, without success)

TranslateX TranslateY TranslateZ
Path
Profiles
LateralFace LateralEdge
CapFace CapEdge
JointEdge
Profiles
HighLight
FaceMaterialArg FaceMaterial FaceOffsetArg FaceHoleArg FaceHole
BendId BendRadius BendAngle BendNeutral BendFlag BendPosition BendFlangeHeight BendAxialDistance
BendAzimuthAngle BendEdgeStartPosition BendEdgeEndPosi
Face2FaceLoftArg Face2FaceLoft
AssemblyAxis

Include

Macro
Parameters
ParameterPoint
(What is the difference between Point and ParameterPoint?)

G3Chamfer G3Shell G3 Offset G3Slice G3Bend
PatternCopy

I live in the hope that maybe there is a list with the descriptions?

I look forward to your answers and contributions, thank you.

Logged
-----------------------------------------------------------------------------------
Very low knowledge of English - I ask for indulgence - Thanks
Currently installed
TurboCAD  Professional 32-bit V.17.2.77.1
TurboCAD 2016 ProPlatinum 64-bit V23.2-61.2 engl.
TurboCAD 2015 2D V.22.2.51.4
on Win 10.


* November 21, 2019, 12:41:52 AM
#21
There is only what you find in the Help file, else it suppose to work in the same way like we would do it in TC if draw something.
But not everything work, and that is the " Fun" part.

As i see it a ParameterPoint is flexible, in a spesifik direction, Point is not.
Nikki have put out a ruler ?? something to show scale etc, and a fence, insert that and then Select it with Edit toll and you can drag it to change length in example.

Macro, is for me an folder where we can put a ppm file that work together with a mainfile 1 step above.
Let's say you have written a function that can be used many different Places, that is a file that typical can be placed in tha Macro folder, it's not work alone as it need some input info, it will get from the mainfile.
It's important that this "Macro file" is on same level as the mainfile or max 1 step down, else TC will not find it.
As in \..\Symbols\My Symbols to \..\Symbols\My Symbols\Macro.
I use the Macro folder for that, as they can't run alone, i find it more clean, and easy to know if it work alone or not that way.

That said, i believe Nikki have found a place where there are some other example of ppm, but not sure.
Old AutoLisp files is very similar to ppm, and i have mine on 3,5" floppydisk's someplace, so not easy to see anymore :)

There is also (ppm v2)something named SD ( Symbol Designer ) in ppm section some place, there they have some example of all function's, but not all of them work in TC as we use ppm v1, they are written differently, but give sometimes ide'a of how they can work.
SD is work i progress, so it will have more functions by time, it's not finish.

Torfinn

Logged
V20, V21, 2015/ 16/ 17/ 18/ 19 Pro. Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB


* November 21, 2019, 07:56:52 PM
#22
Sauerkraut you can use text in a set, Remember that text is always in inverted commas so the parameter would be something like this.

ex=Parameter("colour","red",TEXT,Set("red","blue","green"))

You can use an array in a set - This is useful if you have more then one parameter that uses the same list of words.

exa=Array("red","blue","green","by layer")
ey1=Parameter("wall colour","red",TEXT,Set(exa))
ey2=Parameter("window colour","red",TEXT,Set(exa))

If you just have text without a set - you can type any value in the parameter. Which is useful for layer names, or custom properties.
parameter would look like this

ey2=Parameter("layer","red",TEXT)

You can use a set without adding a type (TEXT) -
ey2=Parameter("window colour","red",Set(exa))
But If you do this, the drop down list in the library properties doesn't work.
If you add the type "TEXT" you can type the word in the library properties - which does work - this can save time when it takes a long time for the computer to compute each parameter change.

The Material Parameter doesn't work - but text does
to have a selection of materials I do something like this

gc=Array("Glass","mostly clear","tinted glass")
ey2=Parameter("glass material","Glass",TEXT,Set(gc))

gmat="Glass\" + ey2
glass=SetProperties(g,"Material"=gmat)


« Last Edit: November 22, 2019, 01:48:16 AM by nikkipollard »

Logged
Nikki
TC20 platinum
TC 2015 platinum
TC 2017 with lightworks


* November 21, 2019, 09:41:33 PM
#23
A point is a set of coordinates (x,y) you draw polylines from point to point. It is not an actual point as in TC.

Parameter points are useful for items you want to be able to stretch to fit in a space.They are nodes in TC when you use the edit tool.
For example instead of a length parameter for a fence you would have two parameter points - use those points to calculate length and angle in the PPM.
To use the symbol you would drag it in from the library . edit nodes and - or stretch to position the fence-
it saves having to measure first. - The down side is they only work on one workplane -
ParameterPoints  don't work on openings in walls.

Example stolen from a similar post ,posted years ago in the PPM sections. I copy and paste this into ppms where I want to use Parameter points.

p0 = ParameterPoint(1, 0, 0, 0);
x0 = PointX(p0);
y0 = PointY(p0);

p1=ParameterPoint(2, 50, 0, 0);
x1 = PointX(p1);  //finds the value of the x coordinate of parameter point p1
y1 = PointY(p1); //finds the value of the y coordinate of parameter point p1
dx=x1-x0
dy=y1-y0

L = sqrt(dx*dx + dy*dy);  //Length
nx = dx/L; 
ny = dy/L; 
alfa = atan(nx, ny);  //angle off 90

//Use it something like this

lin=Polyline(Point(0,0),Point(L,0))
pat=Rectangle(10,10,5)
cen=(L-10)/5      //pattern centres
patcopy=Move(pat,cen,0,0,5)
fence=RotateZ(Move(Group(lin,pat,patcopy),x0,y0),90-alfa,x0,y0) //positions the pattern

pr = RefPoint(x0,y0);  //reference point.

Output(pr,fence)

A reference point is similar to a block reference point.
The only difference is if you change the reference point in TC - to move or rotate the symbol
Resetting the reference point will set it to the reference point defined in the symbol unlike a block where the reference point resets to the centre of extents of the block.
« Last Edit: November 22, 2019, 02:17:50 AM by nikkipollard »

Logged
Nikki
TC20 platinum
TC 2015 platinum
TC 2017 with lightworks


* November 22, 2019, 01:31:02 AM
#24
Solid is a property of a 3d object.
To change a solid to a surface use
item1=SetProperties(item,"Solid"=0)
This is useful if you want to perform Boolean operations on a thickened polyline with curves in it.
Remember all objects need to be surfaces for that boolean operation.
I prefer to use the G3fillet and Circle functions.

G3Fillet , chamfer etc are in the help file under "Functions for Modifying 3D Objects" in the help file search for
"parametric part script editing" to get an explanation of how each function works.
G3Slice doesn't have a description and I couldn't find a way to use it. - it would be nice though

for macro description look for  "creating custom functions"
« Last Edit: November 22, 2019, 02:23:08 AM by nikkipollard »

Logged
Nikki
TC20 platinum
TC 2015 platinum
TC 2017 with lightworks


* November 25, 2019, 02:20:36 AM
#25
Hello,

Unbelievable, your help is invaluable, thank you.

Thanks to your help, I have already managed to get some parts.

At the moment I am trying to explore the commands "Bend ...".

I managed to bend a plate (object), but it does not work like in TC.
When I place the bendline on the plate, the part is bent in the wrong direction. It is bent around the Z-axis, not around the Y-axis. See attached pictures.
My input:
Bend1 = G3Bend (Object, Point1, Point2, angle, radius, depth);

How can I choose the bending direction correctly?

BendId = Object
BendRadius, BendAngle, BendNeutral = as in TC
BendFlag = ???
Bend position = ???
BendFlangeHeight = height of the bend
BendAxialDistance = ???
BendAzimuthAngle = ???
BendEdgeStartPosition = as in TC, distance 1, flange
BendEdgeEndPosition = as in TC, distance 2, flange


Logged
-----------------------------------------------------------------------------------
Very low knowledge of English - I ask for indulgence - Thanks
Currently installed
TurboCAD  Professional 32-bit V.17.2.77.1
TurboCAD 2016 ProPlatinum 64-bit V23.2-61.2 engl.
TurboCAD 2015 2D V.22.2.51.4
on Win 10.


* November 25, 2019, 06:33:31 AM
#26
Attached picture show one that work, have only tested this 1 time earlier on a window, so needed to test it first:)
Seems like it only work in positive direction and dont like if the plate are moved before the bending.
So assume it's sort of limited.
****************
L =Parameter ("Length",800, LINEAR);
W =Parameter ("Witdth",500, LINEAR);
T =Parameter ("Hight",5, LINEAR);

A =Thickness(Rectangle(L,W),T);
Plate2 = Move(G3Bend(A,Point(L/4,0,T),Point(L/4,W,T),45,25,0),L/2,W/2);
Output (Plate2);
*****************

Torfinn

Logged
V20, V21, 2015/ 16/ 17/ 18/ 19 Pro. Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB


* November 25, 2019, 07:51:09 PM
#27
Hello Torfinn,

thanks, thanks, thanks.
It worked with the "Rectangle" command. But as it is in life, I would like to use a polyline. My parts are usually not only rectangular, but polygonal with corners and recesses.

Is there a trick for this?

P.S.
Yesterday I tested the ellipse. It works.
"ShearXY" still does not work.
But I stay tuned.


Logged
-----------------------------------------------------------------------------------
Very low knowledge of English - I ask for indulgence - Thanks
Currently installed
TurboCAD  Professional 32-bit V.17.2.77.1
TurboCAD 2016 ProPlatinum 64-bit V23.2-61.2 engl.
TurboCAD 2015 2D V.22.2.51.4
on Win 10.


* November 25, 2019, 08:31:20 PM
#28
I dont know, but if you Subtract something from it, it will be an Acis if exploded after insert, if your default 3D mode is Solid at least.
Then maybe it will work, ( not the explode part in a ppm, not possible :)
There is a bug in ppm v1 as i call it, so when the profile is completed it's not actually a closed polyline, and by that we get a solid Shell.

I start to think about it, if you set the last point 2 times, maybe it close ??, have to test tomorrow.

Torfinn

Logged
V20, V21, 2015/ 16/ 17/ 18/ 19 Pro. Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB


November 25, 2019, 08:38:29 PM
#29
I dont know, but if you Subtract something from it, it will be an Acis if exploded after insert, if your default 3D mode is Solid at least.
Then maybe it will work, ( not the explode part in a ppm, not possible :)
There is a bug in ppm v1 as i call it, so when the profile is completed it's not actually a closed polyline, and by that we get a solid Shell.

I start to think about it, if you set the last point 2 times, maybe it close ??, have to test tomorrow.

Torfinn

I have been experimenting with Parametric Parts Scripts a little bit.  One thing I have not been able to do is to get a Brush to work.  For a Brush to work we have to have a Closed entity-- same as solid Solid.

Have you or Nikki been successful at creating a Brush in a PPM?

Logged
Alvin Gregorio
Intermittent TurboCAD user since yr. 2000 (ver6.5).  No formal CAD Training.
---TurboCAD: V21PP; V20.2PP; V19DL; V11.2Pro; Windows-7-Pro/64-bit; Intel-Core-i3 CPU; 2.27ghz; 4GB RAM; Intel HD Graphics (CPU based)


* November 25, 2019, 09:49:39 PM
#30
Hello Torfinn,

thanks, thanks, thanks.
It worked with the "Rectangle" command. But as it is in life, I would like to use a polyline. My parts are usually not only rectangular, but polygonal with corners and recesses.

Is there a trick for this?

P.S.
Yesterday I tested the ellipse. It works.
"ShearXY" still does not work.
But I stay tuned.

Would  the "Irregular Polygon" tool work here? It makes a closed polyline. It has a "Fillet Corners" option, but all corners would get the same radius.

Can't you program the "Alt+L" shortcut into the PPM to Close a normal Polyline? It would be best to do this from the "next to last" point in a Polyline.

Logged
John R.

V17—V21, 2015—2019
Designer, Deluxe, (Professional, Expert, Basic), Platinum
RedSDK enabled
Windows 10 Pro (1903), 64-bit


* November 25, 2019, 11:34:29 PM
#31
Alvin Brushes only work on closed polylines.
So at the moment they only work with rectangles and circles. the hatch pattern needs to be loaded into the drawing-
Use "SetProperties" for hatch

example:

BA=90*PI/180    // brush angle needs to be in radians

p1=Rectangle(114,38)
p2=SetProperties(p1,"Layer"="hatch","BrushStyle"="ANSI32",
   "BrushScale"=0.01,"BrushAngle"=BA,"HatchOriginMode"=1)

When I don't know what the property is I check with the macro tool on a test item in the drawing. 

Logged
Nikki
TC20 platinum
TC 2015 platinum
TC 2017 with lightworks


* November 26, 2019, 12:54:58 AM
#32
Hello,

@Torfinn
Quote: I start to think about it, if you set the last point 2 times, maybe it close ??, have to test tomorrow.

My first point is Point (0,0), ... my last point is Point (0,0)

@Alvin Gregorio
Brush only works with 2D objects. Try the following:

// PStart
Units(1[mm]);
Rect1=Rectangle(200,100);
Rect2=SetProperties(Rect1, "PenColor"=00x0134588, "BrushStyle"="L45", "BrushStyle"=25);
Output(Rect2);
// PEnd

@John R.
I think "irregular polygon" and "Alt+L" does not exist in ppm.

@Nikkipollard
Great, you're faster than me. Top.


Logged
-----------------------------------------------------------------------------------
Very low knowledge of English - I ask for indulgence - Thanks
Currently installed
TurboCAD  Professional 32-bit V.17.2.77.1
TurboCAD 2016 ProPlatinum 64-bit V23.2-61.2 engl.
TurboCAD 2015 2D V.22.2.51.4
on Win 10.


* November 26, 2019, 02:27:13 AM
#33
Hi,

here you can see what I'm working on or testing at the moment.
It is a standard bending part.
The desired bends are not created with polylines. Why?


Logged
-----------------------------------------------------------------------------------
Very low knowledge of English - I ask for indulgence - Thanks
Currently installed
TurboCAD  Professional 32-bit V.17.2.77.1
TurboCAD 2016 ProPlatinum 64-bit V23.2-61.2 engl.
TurboCAD 2015 2D V.22.2.51.4
on Win 10.


* November 26, 2019, 05:06:55 AM
#34
I think its the fillets in the polyline. I don't use the bend tool but testing it today it seems that it wont work on anything with curve in it.
The G3 tools seem to be very fussy in that you need specify the exact point.

I don't use the bend tool normally. I use polylines with straight segments. Add a thickness. Then use the G3fillet tool to add curves.

I Know this is not the shape you are trying to achieve but I have had more success with G3Fillet then the bend tool.

For your problem I would use  thickened rectangles. BooleanUnion  them, then apply a G3 fillet to the corners.

« Last Edit: November 26, 2019, 05:37:41 AM by nikkipollard »

Logged
Nikki
TC20 platinum
TC 2015 platinum
TC 2017 with lightworks


November 26, 2019, 05:13:49 AM
#35
Alvin...

When I don't know what the property is I check with the macro tool on a test item in the drawing.

So the below, copied from the Help Documentation on PPS, does not work?
  (I was thinking/attempting to use PPS/PPM to create a symbol usable for Frank's ¾" wide arc'ed 2D "wall" with a hatch pattern; not having any success)
 
    "In the Parametric Part manager there is a special tool to choose the required value for such properties as Material, Pen Color and Brush Style. To activate it, right-click on the property name. This will open the Local Menu either for Material table or PenColor table or BrushStyle table. The appropriate table will appear where the desired value can be chosen."
« Last Edit: November 26, 2019, 05:24:39 AM by Alvin Gregorio »

Logged
Alvin Gregorio
Intermittent TurboCAD user since yr. 2000 (ver6.5).  No formal CAD Training.
---TurboCAD: V21PP; V20.2PP; V19DL; V11.2Pro; Windows-7-Pro/64-bit; Intel-Core-i3 CPU; 2.27ghz; 4GB RAM; Intel HD Graphics (CPU based)


* November 26, 2019, 01:19:21 PM
#36
Then i made a bend like Surkål want's.
In "E" line the Y value cant be 0, it need a tiny little value, else the bended part will twist.

I'm happy i dont work with this kind of stuff, house ( rectangles and triangles) are more easy and fun ;)
The ide'a about double point in the end, did not work, and the same with "Booling" it before bend, not work.
Thickness or Sweep did not made any difference.
NB!! The curves in 2D profile is not very "flexible" as it was only for having some curves in it, before bend
Example under here work.

L =Parameter ("Length",200, LINEAR);
W =Parameter ("Witdth",75, LINEAR);
T =Parameter ("Heigth",4, LINEAR);

D1 = ((W/6)*5);
Profile = Polyline(Point(0,0),Point(L/2,0),Arc1(L/2,D1),Point((L/4)*3,W/3),
          Arc0(L,-W/6),Point(L,(W/3)*2),
          Point(L,W),Point(0,W),Point(0,0));
SP = RotateY(Polyline( Point(0,0),Point(T,0)),-90);
SW = RotateX(Sweep(Profile,SP),-90);
E = G3Bend(SW,Point(L/3,0.0001,0),Point(L/3,0,W),45,5,0);
F = RotateX(E,90);

Output (F);

Logged
V20, V21, 2015/ 16/ 17/ 18/ 19 Pro. Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB


* November 26, 2019, 08:38:39 PM
#37
Alvin...

When I don't know what the property is I check with the macro tool on a test item in the drawing.

So the below, copied from the Help Documentation on PPS, does not work?
  (I was thinking/attempting to use PPS/PPM to create a symbol usable for Frank's ¾" wide arc'ed 2D "wall" with a hatch pattern; not having any success)
 
    "In the Parametric Part manager there is a special tool to choose the required value for such properties as Material, Pen Color and Brush Style. To activate it, right-click on the property name. This will open the Local Menu either for Material table or PenColor table or BrushStyle table. The appropriate table will appear where the desired value can be chosen."
That does work but only for colour and Brush style - sometimes it wont give you the one you want - which can be frustrating.
You can change other properties of an object too. To find those values and the correct code/terminology use the macro tool.
For example - if  I want to use a line style with a world scale and make the object pink.
I can find out the properties , that the turbocad program recognises and set those properties too.


Logged
Nikki
TC20 platinum
TC 2015 platinum
TC 2017 with lightworks


November 26, 2019, 10:27:50 PM
#38
...
That does work but only for colour and Brush style - sometimes it wont give you the one you want - which can be frustrating.
You can change other properties of an object too. To find those values and the correct code/terminology use the macro tool.
For example - if  I want to use a line style with a world scale and make the object pink.
I can find out the properties , that the turbocad program recognises and set those properties too.

Thanks Nikki.  And for Reply in the other Topic also.  These are useful.
It's now just a matter of how much time one (I) wants to devote to learning more about this; but you and Torfinn have provided a good start and confidence.

Logged
Alvin Gregorio
Intermittent TurboCAD user since yr. 2000 (ver6.5).  No formal CAD Training.
---TurboCAD: V21PP; V20.2PP; V19DL; V11.2Pro; Windows-7-Pro/64-bit; Intel-Core-i3 CPU; 2.27ghz; 4GB RAM; Intel HD Graphics (CPU based)


* November 28, 2019, 08:20:34 AM
#39
Hi,

 :-\ I will be crazy.  :-\   :'(
I did not get that with the parameter point yet.
I copied the following from the manual:

P0 = ParameterPoint (0, 1, -1, 0);
x arrow = PointX (P0);
y arrow = PointY (P0);
rf = RefPoint (x arrow, y arrow, 0);
b = Rectangle (x arrow, y arrow);
Output (b);
Output (rf);

If I insert the symbol 1x I will draw a rectangle.
Size of the rectangle ??? RefPoint apparently somewhere ??
If I insert the symbol for example 5x it has a different size each time. Why?

Later:
If I go into edit mode I see the blue dot.
If I move the blue dot, the size of the rectangle changes as well. What is this used for?

I do not understand the meaning and purpose of the parameter point.

Is there perhaps an example that brings light into darkness?

And of course a big thank you for your help.


Logged
-----------------------------------------------------------------------------------
Very low knowledge of English - I ask for indulgence - Thanks
Currently installed
TurboCAD  Professional 32-bit V.17.2.77.1
TurboCAD 2016 ProPlatinum 64-bit V23.2-61.2 engl.
TurboCAD 2015 2D V.22.2.51.4
on Win 10.


* November 28, 2019, 12:09:57 PM
#40
The ide'a about Parameter Point is that it should be flexible, you can change the size by dragging a part sideways/ upwards, normally it's in positive direction.
That is not possible with using Point, there we need to open the SI Palette and change the Parameter value.
We can drag a Point ppm by it's boundary Box edges, but it will go back to originel shape when we relase it, a parameter Point ppm will stay in the new size.

In examples there is an Arrow ppm (and many others);
Input(P0, P1, size, arra); // This line say that is should get that info from a different ppm, but here it is just below, so we dont need it.
P0 = ParameterPoint(0, 0, 0); //This one say it start at 0,0,0
P1 = ParameterPoint(1, 5, 5);// and go to 1,5,5 ( positive direction.
size = Parameter("size", 1, LINEAR);// the side of Arrow, will show in Property and possible to change before or after insert
arra = Parameter("arrow angle", 45, ANGULAR);// Rotation Angle, possible to change as above, Default angle of arrowhead
x0 = PointX(P0);// start x point
y0 = PointY(P0);// start y point
x1 = PointX(P1);// end x point ( length)
y1 = PointY(P1); // end y point ( length)
angle = atan(y1-y0, x1-x0); // == 45 degree
px = size*sin(arra/2);//calc length in x direction
py = size*cos(arra/2);   // calc length i y direction
T0 = Polyline( Point(-px, 0), Point(0, py), Point(px, 0), Point(-px, 0)); // Draw the triangle Arrow head
T1 = RotateZ(T0, angle-90, 0, py); // rotate the arrowhead , from point 0,py
T2 = Move(T1, x1, y1-py); // move arrowhead to correct position
T3 = SetProperties(T2, "BrushStyle" = "SOLID");// set brush, not work before explode 1 time after insert
line = Polyline(P0, P1);  // Draw the line

Output(T3, line);

Insert the symbol and the Select it, notice where refpoint is
Take away Output by add 2 // in front of that line and use;
RF = RefPoint(x1,y1);

Output(T3, line,RF);
Select the symbol and notice where the refpoint is, no matter where you move it, it stay in the same point relative to arrowline, so more easy to insert at a spesific place, and dragging boudary box for change size

Torfinn

Logged
V20, V21, 2015/ 16/ 17/ 18/ 19 Pro. Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB


* November 28, 2019, 03:20:13 PM
#41
The way I understand it parameter points are similar to nodes on a polyline.
Use them instead of parameters.
You can edit a symbol that uses parameter points with the edit node tool.
for example a simple triangle would be represented by 3 parametric points.

P0 = ParameterPoint(0, 0, 0,0);
P1 = ParameterPoint(2, 100, 0,0);
P2 = ParameterPoint(3, 50, 50,0);

//To draw that triangle you can use a polyline
lne=Polyline( P0, P1,P2, P0)
RF = RefPoint(PointX(P0),PointY(P0));
Output(RF,lne)

Typically you need more information about your triangle
To get a value for the X, Y (and Z )coordinates of each parameter point use

X0=PointX(P0)
Y0=PointY(P0)
X1=PointX(P1)
Y1=PointY(P1)

To calculate the length of the line between points P0 and P1 use the distance formula
 L1=sqrt((X2-X1)*(x2-X1)+(Y2-Y1)*(Y2-Y1))

To calculate the angle of that line
A1= atan((Y2-Y1)/(X2-X1))

As Torfinn says make one of those points the reference point.













« Last Edit: November 28, 2019, 04:20:44 PM by nikkipollard »

Logged
Nikki
TC20 platinum
TC 2015 platinum
TC 2017 with lightworks


* November 30, 2019, 03:21:26 AM
#42
Hi,

I believe that I now know what the ParameterPoint can be used for.
But, I do not know where I can use the ParameterPoint myself.
I have to explore that.

This morning I tried to rotate a polyline or a rectangle (with Revolve), but apparently the command is not in ppm. Unfortunately not.

I'm curious what discoveries I will find yet.
Maybe you still have ideas what I could or should try? I ask for suggestions. Maybe the blend commands?

Thank you again and nice greetings


Logged
-----------------------------------------------------------------------------------
Very low knowledge of English - I ask for indulgence - Thanks
Currently installed
TurboCAD  Professional 32-bit V.17.2.77.1
TurboCAD 2016 ProPlatinum 64-bit V23.2-61.2 engl.
TurboCAD 2015 2D V.22.2.51.4
on Win 10.


* November 30, 2019, 05:43:55 AM
#43
Revolve doesn't work but if you need a simple revolve - you can sweep on a circle - or arc.

Logged
Nikki
TC20 platinum
TC 2015 platinum
TC 2017 with lightworks


* November 30, 2019, 06:06:42 AM
#44
Hi nikkipollard,

tested immediately. it works. Wow  ;)

Thank you

Logged
-----------------------------------------------------------------------------------
Very low knowledge of English - I ask for indulgence - Thanks
Currently installed
TurboCAD  Professional 32-bit V.17.2.77.1
TurboCAD 2016 ProPlatinum 64-bit V23.2-61.2 engl.
TurboCAD 2015 2D V.22.2.51.4
on Win 10.


* November 30, 2019, 11:36:08 AM
#45
A Macro uses : Start "Insert|3DObject|RevolveAroundAxis" when I revolved a rectangle. Maybe RevolveAroundAxis would work in a PPM.

Logged
John R.

V17—V21, 2015—2019
Designer, Deluxe, (Professional, Expert, Basic), Platinum
RedSDK enabled
Windows 10 Pro (1903), 64-bit


* November 30, 2019, 11:57:05 AM
#46
A good ide'a, but not work.
SD have a revolve tool, but it will not work in TC

Torfinn

Logged
V20, V21, 2015/ 16/ 17/ 18/ 19 Pro. Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB


* February 11, 2020, 12:31:12 AM
#47
Maybe we talk about different list, i talk about the one that are in the end of Parametric Parts in the helpfile;

http://doc.imsidesign.com/articles/#!turbocad-2018-user-guide-publication/parametric-part-script-editing-1

That is the list of legal commands we are supposed to use, but others things work also like  ""  and that is from excelworld for me, aka Visual Basic or similar.

Not everything is explained, so we need to figure out what it is by ourself :)
But a good hint is how do we do it in TC if we should draw similar, but not always.

In the list we also have   **  i never figured out that one out before reading the explanation in SD.
In example 2** = (2x2) , 3** = (3x3)  (square root)


Torfinn


Torfinn do you have an example with this working in a PPM?

Logged
Nikki
TC20 platinum
TC 2015 platinum
TC 2017 with lightworks