News:

Be sure your post is relevant to the current discussion.  Create a new topic within the appropriate board if you are unsure.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

PPM - material settings X RedSDK

Started by mpavelek, April 23, 2016, 02:50:32 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

mpavelek

Hi,
How to set the type of material in PPM, if I use RedSDK render?
Ordinary settings in PPM is
Side2 = SetProperties (Side2, "Material" = "Wood \ Pine");
but works only when using LightWorks rendering. When using RedSDK render settings have no effect on the material. At least at the glass


Dean

#1
As long as you have a Redsdk and Lightworks material named "wood pine" it should render. By default there should be a wood pine for redsdk and LW. Did you try and "Add redsdk component"?
I did notice in V21 I needed to add the redsdk wood pine material to the symbol's 3d properties inorder for the door and shelf to render with texture. Besides that there's no  problem with the cabinet shell.
In V2016 all surfaces are mapped with the wood pine material.
"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

Torfinn

Exept from what maybe is just a typing fault, it should work in both if you have a material with same name, just as Dean pointed out.
But in my eyes
Side2 = SetProperties (Side2, "Material" = "Wood \ Pine");
is wrong
maybe it should have been

Side2 = SetProperties (Side1, "Material" = "Wood \ Pine");

But i guess only a typo, and i have never try'd that combination for give a material inside a PPM, maybe it work, dont know

BTW, welcome to the Forum, nice to finally see someone else that use ppm's, so hope to see you here again  :)
How nice is it to call something an apple or orange, hit the insert button and TC draw me a house,i like it a lot :)

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

mpavelek

Yes, it is just a mistake when copying example from Help. Look on my code at the pallet in picture.

--------------------
//3d zasklení
ZaskleniPom1= Thickness(RotateX(Rectangle(IF(Otv=="Fix",so-2*PSram,so-2*(PosKV+PSkr)),IF(Otv=="Fix",vo-2*PSram,vo-2*(PosKV+PSkr))),90),16);
ZaskleniPom= SetProperties(ZaskleniPom1,"Material"="Sklo\Průhledné sklo");
Zaskleni= IF(SW1==1,IF(SW2,Move(ZaskleniPom,0,-PH/2+IF(Otv=="Fix",32,48),0),0),0);

I use CZ version,
ZaskleniPom= SetProperties(ZaskleniPom1,"Material"="Sklo\Průhledné sklo");

In English it will probably
ZaskleniPom= SetProperties(ZaskleniPom1,"Material"="Glass\Glass");
???? I do not know the names of materials in English version TC

--------------------------------

1. Create any 3D object in PPM
2. Assign the object material - glass
3. Insert the PPM into a drawing
4. Quality render - LightWorks - the result is a glass object - It is OK
5. Quality render - RedSDK - the result is a full object - It is wrong . Or am I doing something wrong (?) and ask for help here.

mpavelek

#4
One note more. My English is bad but ….
If the PPM will Explode, it becomes also in RedSDK render glass.

Solution problem exists. Do not put directly PPM into the drawing, but the block. In block PPM Explode and in drawing work hereinafter with blocks (like in Array Pattern). When is need for change - clear the contents of the block and insert a new PPM symbol in the same block and then Explode.
This solution is certainly not ideal. I think that the idea of PPM is easy to change the elements. In the described process PPM actually do not need and you can block edited directly. I think that IMSI has great ideas, but many are solved just halfway.

My question is this:  How to set the material in the PPM to be fully use in the LightWorks and also in RedSDK render?

Torfinn

There is something wrong, but difficult so say as i dont have the ppm, can you post that or something similar that show the problem, attach 2 png of a ppm window in redSDK and LW, Q render

BTW, dont care about your English, i am also not a native English speaker, i basically write them in Norwegian.
And that is very easy to see, when i try in my sort of English :)

So the basic answer is to have the same material in RedSDK and LigthWorks, same place/ name

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

mpavelek

Thank you for answer. I expected to just one setting.
So the problem is elsewhere, but where?

Look at the pictures. There are two pairs of windows. The pair left is PPM. Pair right is PPM after the explode - ie. now Graphics Group (no other operations more was done).

In Lightwork render everything is correct. The PPM and a Group of Graphics is glass. It is transparent.
But when using RedSDK render the glass is only for the Group of Graphics, but in PPM object is filled base material. No glass. And yet everything is set up equally

File "Okno-2.txt" is renamed PPM - original name is "Okno-2.ppm"

Torfinn

Have you made a material named Glass\Glass, (in your language of course,) in RedSDK, it dont have it by default
I open your file, changed the material to Glass\Glass and it works like a charm

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

Dean

#8
Hey Old Buddy  :) are you using version 21?
It looks like a bug in V21, the script works in 2016.
In V21 the redstuff material isn't getting mapped from the ppm.

V21 > I exploded the ppm one time to expose the material
"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

mpavelek

Torfinn, maybe in 2016, but surely not in version 21.2.
I did more tests. And result? In RedSDK render version 21.2 has no setting any materials by PPM any effect. In the drawing you can assign an PPM object material. Global â€" for all part of PPM object. But parts of object can not be changed by PPM script.

So it's in my error in the program code TC .... corrected in future versions of the TC. As always.

Torfinn

Yes, i was testing it in v2016, as i never have see a material fault when it come to ppm, there is a lot of other stuff, but not in ppm's, except when i make them ;)
A material is a material as far as i know
So will test it in v21 and see what's showing, hope i still have v 21 on this machine, but we see :)

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

mpavelek

I've yet found in the PPM error. But I worked far only in LightWorks. But because it is newly Lightwork just as plu-in (and I do not), I decided to try RedSDK. And that surprised me a lot. Unpleasantly.
One and a half day testing is over and the result of my work is no :-(  A completely unnecessary.

Torfinn

mpavelek, i dont hink it is something inside your ppm, so dont use time on that, in my opinion.
There is something related to RedSDK, that make it not taking the material in v21, like i say earlier, in v2016, work like a charm, it just show the color of the layer it is in when taking it in to v 21.
I will test more tomorrow in the old machine, it did not function in the new, at least not so far :)
But i am not a "render guy", if i get a material on a ppm, very good :)

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

mpavelek

I have maybe wrong translate.
PPM is good. I also did not find errors.

Incidentally I ask. Exist a complete reference book?
Face2FaceLoftFace, ScaleX, PatternCopy ........ mentioned in the Help looks very interesting. Or is it just reserved words for the future?

Torfinn

Maybe i only misunderstood, i can very easy do that :)
No, there is not more than what you see in the help file, i think we are to figure it out our self, i have never used this functions you ask for, but i believe they work
As what i have tryd so far have all worked when i just figure out how to write them, all except insert a Block that is mentioned in the help, but they know about it, so maybe we some day can get it to work ;)

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

mpavelek

#15
Another problem - Version 21.2
Programming mistake that the user has no chance whatsoever to influence.

1. Create PPM object with some nonrederable parts
2. Insert PPM object in a drawing
3. Create an pattern array from PPM object
4. LightWorks render / setting / - show nonrenderable objects.

Result? Nonrenderable objects will be displayed only by PPM object.
In the pattern array (created from the PPM objects) displayed norenderable object are not visible !!!
Here, on the contrary RedSDK render works correctly


Picture :
Up : (Array) Pattern Copy from PPM object  (2x3)
Down : simple PPM object


mpavelek

It's a great pity these small bugs in TCAD. Restricting really professional use.

But they can be making really interesting things. The picture is the facade of the building. It is just one array (pattern copy) from two PPM object. So one object. Fully customizable.
Any even more significant changes are realizable within seconds modification parameters array (pattern copy) or parametrs PPM symbol.

mpavelek

#17
So next. Again TC 21.2 Plat and PPM.
You can not fill a closed polyline to hatch is visible. Respectively. It can be, but hatch is visible only after explode PPM object. Hatching works only on circles and rectangles in 2D PPM object. Sure, Polyline may not be closed, I understand, but she closed it. A point in the polygon is not defined by a numerical value (x,y), but a pointer to an object (adress/name of Point), so it was really closed. When you editing nodes can be verified. Closed is.

Three days, three problems. Or restrictions (but it is by product with the word professional in the name not good)
PPM objects TC21

1. Does not hatch closed polylines (Only Circle or Rectangle)
2. Does not  set materials for parts of PPM object ( when using RedSDK render )
3. When creating array (by Pattern Copy) of PPM objects are not visible nonrederable objects. ( when using LW or Hidden Lines render )

Picture - any marks. Hatch quadrants Q1,Q2,Q3,Q4
Left - explored PPM object, Right - original (true) PPM objekt


mpavelek

It's even more interesting than I thought.

Described only applies to Model.
If I post PPM object on Paper and explode, then polyline (with hatch) is not closed.
The same PPM object works differently in the model space and in the paper space.
Really interesting

John R

Quote from: mpavelek on April 23, 2016, 11:54:01 PM
Yes, it is just a mistake when copying example from Help. Look on my code at the pallet in picture.

--------------------
//3d zasklení
ZaskleniPom1= Thickness(RotateX(Rectangle(IF(Otv=="Fix",so-2*PSram,so-2*(PosKV+PSkr)),IF(Otv=="Fix",vo-2*PSram,vo-2*(PosKV+PSkr))),90),16);
ZaskleniPom= SetProperties(ZaskleniPom1,"Material"="Sklo\Průhledné sklo");
Zaskleni= IF(SW1==1,IF(SW2,Move(ZaskleniPom,0,-PH/2+IF(Otv=="Fix",32,48),0),0),0);

I use CZ version,
ZaskleniPom= SetProperties(ZaskleniPom1,"Material"="Sklo\Průhledné sklo");

In English it will probably
ZaskleniPom= SetProperties(ZaskleniPom1,"Material"="Glass\Glass");
???? I do not know the names of materials in English version TC

>>SNIP
>>

There is a list of the default Materials for TC 2016, in English, in the Wiki. See the Materials page.
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

mpavelek

I'm sorry, this is not essential.
It must work with the default materials and any new material created by the user. The problem is that it does not work with any material.

Torfinn

Quote from: mpavelek on April 26, 2016, 01:11:49 AM
It's even more interesting than I thought.

Described only applies to Model.
If I post PPM object on Paper and explode, then polyline (with hatch) is not closed.
The same PPM object works differently in the model space and in the paper space.
Really interesting

Yes, it was interesting, if i set the symbol in to P Space in v 2016, it will be exploded automatic :)
But then of course not a symbol anymore but a selection of groups.

The brush is not in the list of commands that is supposed to work inside the ppm, but like many other thing, something work and some dont, VB commands can also be used to a point i believe, so it is a sort of try and see what work or not.
RedSDK material in v21 must be a fault i believe you will need to live With, as i doupt there will be a update on that one.

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

mpavelek

#22
The brush is not in the list of commands that is supposed to work inside the ppm.
Ar you sure?????  I am not.


From : https://turbocaddoc .... Parametric Part Script Editing - TurboCAD 21 Users Guide - IMSI Documentat...
------------------Begin - Ctrl+C/V

Setting and Changing Object Properties
The SetProperties function is used to set the properties of objects.
Format:
SetProperties(<Object>, <PropertyName> = PropertyValue, <PropertyName> = PropertyValue, ...);
<Object> Defines the object to be used as the base for the new object with set properties
<PropertyName> Defines the name of the property to be set. The name should be surrounded with quotation marks
<PropertyValue> Defines the value to be assigned to the property
Example of SetProperties:
BlueRect=Rectangle(10,5);
RedRect = SetProperties(BlueRect, "PenColor" = 0xff, "PenWidth" = 0.2);
Output(RedRect);
Another Example:
Side2M = SetProperties(Side2, "Material" = "Wood\Pine", "PenColor" = 0xff);
Another Example:
PL1 = SetProperties(PL0, "Brush" = "SOLID");
Another Example:
SetPlastic = ("Material" = "Plastics\Plain white");
BoxMaterial = SetProperties(MyBox,SetPlastic);

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.

------ End of Ctrl+C/V

So if I take the User Guide, I expect that it will work Material, Brush and PenColor setting.
Should also work to set all other properties - Layer, PenType, BrushScale ......
But BrushStyle work ony for Circle and Rectangle. This is a fundamental error. Either in the text User Guide (me mislead) or in the program. I'm just a user !!! I make my living using the program and not him testing.

Dean

#23
mpavelek,
Have you tried creating your own Parametric part?
I use these for animations "SetProperty/Value"
"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

Torfinn

I am not sure either, it sort of never have worked, and i dont see it in the command word list, so assumed this was not working, did also run your script in v18 just now, same result, work when explode

But it is very close, so maybe just about how we write it ??

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

mpavelek

Quote from: Dean on April 26, 2016, 08:06:19 AM
mpavelek,
Have you tried creating your own Parametric part?
I use these for animations "SetProperty/Value"

"Have you tried creating your own Parametric part?" Sorry, I do not this understand.

I've created hundreds of PPM symbols (a complete building â€" part from foundation to roof). Most are just “plain” 3d objects without setting the color, layer, material. Now, these symbols trying to put into correct levels, set the colors, brushes and the like. And to create correctly 2D representation for this 3D object. Usable in the project documentation (not just for use in comuter but after printing on paper on site). The construction documentation is very different from the model or visualization in computer.

Selection Info in ver. 21.2 Platinium is diffrent.
Selected object is not "Group of graphics" but "Parametric symbol". And down "Property"  --- Brush  : not exist for this object. So it can not be set in this way.

mpavelek

#26
Quote from: Torfinn on April 26, 2016, 08:57:35 AM
I am not sure either, it sort of never have worked, and i dont see it in the command word list, so assumed this was not working, did also run your script in v18 just now, same result, work when explode

But it is very close, so maybe just about how we write it ??

Torfinn

Property ar not in the list of reserved words PPM script. Simply because the script is working with properties as whith text. Therefore is used their name always whit <"....">.
This is a very clever idea. This enable potentially change all properties (also user-defined). Clever idea, but it does not work :-(


Torfinn

mpavelec, please try this one

http://downloads.imsidesign.com/symboldesigner/setup.exe

Just follow the install, dont care about that it tell you put in some code, click ok and it will install, i hope :)

That is a great program, made by SoftDev, you know, the guy's that write the code to TC ;)
That will tell you if there is some fault in your script, where it is and so on, open this today and it tell me a fault in your script.

In the old machine with win 7 and TC 21 no fault, but in win 10/ TC 2016 on the other machine i get a fault, you use
C=Point (0,0), so i make a small change add a small c=(0,0) and use the small c as the centerpoint of the Arc
The Arc dont like that "Point" thing, there it should have been c=(0,0) as it only will accept the x,y values, not Point.
TC is very "round", it has been "trained" to accept many fault's during the years i believe, SD dont, it will tell you if/ where there is a fault, and what :)

Another great thing with SD is that it will allow you to encrypt you files as *.ppe, work like a charm :)
I have try'd several times to make IMSI implement SD in to TC, no luck so fare :), but guess it is about $$ :(

Last time i spoke with them ( SofDEV ) about this, they was finish with the 2D part, but not the 3D, today i dont know the status or if they have start to sell SD ( Symbol Designer)

So with this minor adjustment ;
""
C = Point(0,0);
c= (0,0)
PX1= Point(-R,0);
PX2= Point(R,0);
PY1= Point(0,-R);
PY2= Point(0,R);
QQ1= IF(Q1==1,SetProperties(Polyline(C,PY2,Arc0(c),PX2,C),"BrushStyle"="Solid"),0);
QQ2= IF(Q2==1,SetProperties(Polyline(C,PY2,Arc1(c),PX1,C),"BrushStyle"="Solid"),0);
QQ3= IF(Q3==1,SetProperties(Polyline(C,PY1,Arc0(c),PX1,C),"BrushStyle"="Solid"),0);
QQ4= IF(Q4==1,SetProperties(Polyline(C,PY1,Arc1(c),PX2,C),"BrushStyle"="Solid"),0);
""
I get no warning in SD anymore, the symbol work, the fault is in TC, finish

I also tested your file by changing different things, not use yp1,xp1 etc, but the Point(xx,xx) in stead, write the name "BrushStyle"= "Solid" in all the differen way i could think of, even take away the "IF" part in it, but still TC will not put it out correct, SD do in the blink of an eye :), so if you change the C for use in your Arc, there is no fault at all about it, BUT, there is in TC.

The "Parametric Part" is to draw it and use Constraint to control it by the Variable Palette, not fun at all :):)
Infact very boring in my mind :)



Just see you comment, yeah, i have got used to and accept that it is not working, not thinking over why,  sort of just is how it is, dont use a command or work around it, find a different route to what i want.

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

John R

re: …I also tested your file by changing different things, not use yp1,xp1 etc, but the Point(xx,xx) in stead, write the name "BrushStyle"= "Solid" in all the differen way i could think of, even take away the "IF" part in it, but still TC will not put it out correct,

Have you tried …"BrushStyle"="SOLID"),0);? Maybe it wants all capital letters.
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

Torfinn

Yeah, i think that was the first one i test, do that work in Emperial system ??
I have reported it as a BUG, as we still have the problem in v 2016

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

Dean

Quote from: mpavelek on April 26, 2016, 11:37:11 AM
Quote from: Dean on April 26, 2016, 08:06:19 AM
mpavelek,
Have you tried creating your own Parametric part?
I use these for animations "SetProperty/Value"

"Have you tried creating your own Parametric part?" Sorry, I do not this understand.

I've created hundreds of PPM symbols (a complete building â€" part from foundation to roof). Most are just “plain” 3d objects without setting the color, layer, material. Now, these symbols trying to put into correct levels, set the colors, brushes and the like. And to create correctly 2D representation for this 3D object. Usable in the project documentation (not just for use in comuter but after printing on paper on site). The construction documentation is very different from the model or visualization in computer.

Selection Info in ver. 21.2 Platinium is diffrent.
Selected object is not "Group of graphics" but "Parametric symbol". And down "Property"  --- Brush  : not exist for this object. So it can not be set in this way.

If you create a "parametric part" the "property controls" are accessible via the parametric symbol. They can be changed and or animated. You can either import them or create a symbol.
You physically create the PPM, not by typing in the  :P"boring script" :)
"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

Torfinn

V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

Torfinn

And for info
SoftDev also have a ppm Viewer that work with AC

PPMs can be opened in AutoCAD if the AutoCAD plugin is installed.

Here is a link to this plugin in AutoDesk exchange  Store:

https://apps.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3appmbasic_windows32and64%3aen

And this link shows the plugin but with the installer:

http://www.caddivision.com/software/ppm-basic

PPMs that can be opened in Symbol Designer, will 100% work in the AutoCAD plugin.

That can be handy to show the ppm's for other people that not have TC, sadly they are to many :):)

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

John R

Looking at Properties and the TCExplorer, they use "Brush Pattern" instead of "BrushStyle". In old TurboCAD versions, in the INI file, "Brush Pattern" was originally "$CEBTYPE".

Just grasping at straws.
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

Torfinn

Quote from: Dean on April 26, 2016, 01:14:58 PM
Quote from: mpavelek on April 26, 2016, 11:37:11 AM
Quote from: Dean on April 26, 2016, 08:06:19 AM
mpavelek,
Have you tried creating your own Parametric part?
I use these for animations "SetProperty/Value"

"Have you tried creating your own Parametric part?" Sorry, I do not this understand.

I've created hundreds of PPM symbols (a complete building â€" part from foundation to roof). Most are just “plain” 3d objects without setting the color, layer, material. Now, these symbols trying to put into correct levels, set the colors, brushes and the like. And to create correctly 2D representation for this 3D object. Usable in the project documentation (not just for use in comuter but after printing on paper on site). The construction documentation is very different from the model or visualization in computer.

Selection Info in ver. 21.2 Platinium is diffrent.
Selected object is not "Group of graphics" but "Parametric symbol". And down "Property"  --- Brush  : not exist for this object. So it can not be set in this way.

If you create a "parametric part" the "property controls" are accessible via the parametric symbol. They can be changed and or animated. You can either import them or create a symbol.
You physically create the PPM, not by typing in the  :P"boring script" :)

:):)

OK Dean, Gamle Ørn
What are you talking about now, please enligthen me, us :)
Put out one example and explaine how it work.
Guess you have tested this ppm we are talking about and not have a answer on that one, and you are working in in this wannabe system, Imperial ;):)
I sort of get hopes when i see John's comment :)


Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

Torfinn

Quote from: John R on April 26, 2016, 01:36:18 PM
Looking at Properties and the TCExplorer, they use "Brush Pattern" instead of "BrushStyle". In old TurboCAD versions, in the INI file, "Brush Pattern" was originally "$CEBTYPE".

Just grasping at straws.

Hi John
I did also test that, but no luck, sadly.

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

mpavelek

Quote from: Torfinn on April 26, 2016, 12:29:54 PM
mpavelec, please try this one

http://downloads.imsidesign.com/symboldesigner/setup.exe

Just follow the install, dont care about that it tell you put in some code, click ok and it will install, i hope :)

That is a great program, made by SoftDev, you know, the guy's that write the code to TC ;)
That will tell you if there is some fault in your script, where it is and so on, open this today and it tell me a fault in your script.

In the old machine with win 7 and TC 21 no fault, but in win 10/ TC 2016 on the other machine i get a fault, you use
C=Point (0,0), so i make a small change add a small c=(0,0) and use the small c as the centerpoint of the Arc
The Arc dont like that "Point" thing, there it should have been c=(0,0) as it only will accept the x,y values, not Point.
TC is very "round", it has been "trained" to accept many fault's during the years i believe, SD dont, it will tell you if/ where there is a fault, and what :)

Another great thing with SD is that it will allow you to encrypt you files as *.ppe, work like a charm :)
I have try'd several times to make IMSI implement SD in to TC, no luck so fare :), but guess it is about $$ :(

Last time i spoke with them ( SofDEV ) about this, they was finish with the 2D part, but not the 3D, today i dont know the status or if they have start to sell SD ( Symbol Designer)

So with this minor adjustment ;
""
C = Point(0,0);
c= (0,0)
PX1= Point(-R,0);
PX2= Point(R,0);
PY1= Point(0,-R);
PY2= Point(0,R);
QQ1= IF(Q1==1,SetProperties(Polyline(C,PY2,Arc0(c),PX2,C),"BrushStyle"="Solid"),0);
QQ2= IF(Q2==1,SetProperties(Polyline(C,PY2,Arc1(c),PX1,C),"BrushStyle"="Solid"),0);
QQ3= IF(Q3==1,SetProperties(Polyline(C,PY1,Arc0(c),PX1,C),"BrushStyle"="Solid"),0);
QQ4= IF(Q4==1,SetProperties(Polyline(C,PY1,Arc1(c),PX2,C),"BrushStyle"="Solid"),0);
""
I get no warning in SD anymore, the symbol work, the fault is in TC, finish

I also tested your file by changing different things, not use yp1,xp1 etc, but the Point(xx,xx) in stead, write the name "BrushStyle"= "Solid" in all the differen way i could think of, even take away the "IF" part in it, but still TC will not put it out correct, SD do in the blink of an eye :), so if you change the C for use in your Arc, there is no fault at all about it, BUT, there is in TC.

The "Parametric Part" is to draw it and use Constraint to control it by the Variable Palette, not fun at all :):)
Infact very boring in my mind :)



Just see you comment, yeah, i have got used to and accept that it is not working, not thinking over why,  sort of just is how it is, dont use a command or work around it, find a different route to what i want.

Torfinn

Torfinn, thank you for the information.
Symbol Designer know, but now I do not use it. But earlier times, yes.
I have tested that TC accepted by many commands over the different syntax. It is not programming language but script. It works with the pointer on. That's great.
My PPM script is just a simple example. The problem with brush in PPM known  two years. At that time I tested it, perhaps four days. I tried hundreds of different entries script. No result. For polyline brush simply does not work.

Attachment - same PPM script
SD - OK. Without mistakes. Syntax and the outcome (= with brush).
TC - does not work. Brush missing.

In help Symbol Designer I found unknown commands that are not listed in the User's book. I'm happy. Surely I try it soon.

mpavelek

Quote from: Dean on April 26, 2016, 01:14:58 PM
Quote from: mpavelek on April 26, 2016, 11:37:11 AM
Quote from: Dean on April 26, 2016, 08:06:19 AM
mpavelek,
Have you tried creating your own Parametric part?
I use these for animations "SetProperty/Value"

"Have you tried creating your own Parametric part?" Sorry, I do not this understand.

I've created hundreds of PPM symbols (a complete building â€" part from foundation to roof). Most are just “plain” 3d objects without setting the color, layer, material. Now, these symbols trying to put into correct levels, set the colors, brushes and the like. And to create correctly 2D representation for this 3D object. Usable in the project documentation (not just for use in comuter but after printing on paper on site). The construction documentation is very different from the model or visualization in computer.

Selection Info in ver. 21.2 Platinium is diffrent.
Selected object is not "Group of graphics" but "Parametric symbol". And down "Property"  --- Brush  : not exist for this object. So it can not be set in this way.

If you create a "parametric part" the "property controls" are accessible via the parametric symbol. They can be changed and or animated. You can either import them or create a symbol.
You physically create the PPM, not by typing in the  :P"boring script" :)

I agree. For most property, yes. But not to brush in the TC21.
Maybe I'm stupid and just do not know.
Can you write it down, please?

BP = Paramater ("brush_pattern" ......
I do not know it.

Dean

"What are you talking about now, please enligthen me, us :)
Put out one example and explaine how it work."

Hey, old Buddy. :)
:P I like to plant the potatoes by hand not by using a machine :P
When you "create a parametric part" look in the help :P
The parametric part references all the 'property controls"
You know how to do this ;D
I posted a simple example. Works like a charm with 2d objects.
"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

Torfinn

#39
Brush Pattern was the old name of BrushStyle, i did test it and not get any luck

Torfinn

Edit;
And are still been used as i did find that name in the property of Brush
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

Dean

" But not to brush in the TC21."

yes, it does > see attached video.
I created a simple parametric part in V21 64 bit and assigned a few of the property controls, including 'Brush'
"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

mpavelek

Quote from: John R on April 26, 2016, 01:36:18 PM
Looking at Properties and the TCExplorer, they use "Brush Pattern" instead of "BrushStyle". In old TurboCAD versions, in the INI file, "Brush Pattern" was originally "$CEBTYPE".

Just grasping at straws.

Thanks.  I tried. No result.
I have tested that TC accepts only original names of the properties, but also some properity names in Czech language (in Czech version TC)

Torfinn

Quote from: Dean on April 26, 2016, 02:17:42 PM
"What are you talking about now, please enligthen me, us :)
Put out one example and explaine how it work."

Hey, old Buddy. :)
:P I like to plant the potatoes by hand not by using a machine :P
When you "create a parametric part" look in the help :P
The parametric part references all the 'property controls"
You know how to do this ;D
I posted a simple example. Works like a charm with 2d objects.

Hi Dean, Gamle Ørn

jeeze, we stop to do that 100 years ago       i believe ;)
I have to study this tomorrow, as now it is 0.45 Am her, you know, old people like me should have been in bed long time ago :)

It is not the same, it looks like i just could have drawn something, make a Block and then use Block edit to change it, same result, in my mind.

The "Fun" with ppm is the typing and limited choise of commands/ Tools :)

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

mpavelek

Quote from: Dean on April 26, 2016, 02:31:22 PM
" But not to brush in the TC21."

yes, it does > see attached video.
I created a simple parametric part in V21 64 bit and assigned a few of the property controls, including 'Brush'

OK. It is not created by the script, but using Part candidate. It works. For simple elements. But complex objects can not create using Part candidate. So I use the script.

I want brush in the functioning of the script. How do I write?

mpavelek

Torfinn, just a quick question. Today I test it no, I want to go sleep.
Commands "Dim", "Scale", "Workarea" in Help SymbolDesigner really work in TurboCAD?

Dean

I tested with examples and rectangles and circles accept the brushstyles >see attached video
polylines will accept the brushstyle but will not be visible when inserted > it needs to be exploded once then the assigned brush will be visible.

"jeeze, we stop to do that 100 years ago       i believe ;)
I have to study this tomorrow, as now it is 0.45 Am her, you know, old people like me should have been in bed long time ago :)

It is not the same, it looks like i just could have drawn something, make a Block and then use Block edit to change it, same result, in my mind.

The "Fun" with ppm is the typing and limited choise of commands/ Tools :)

Torfinn"

Hey old buddy,  :)
sometimes I use the "Old" things because they work :P
They're much more useful and quicker than using blocks,IMHO> no comparison ;D
I'd rather "design" by drawing with the parametric capability.

"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

mpavelek

Sorry, but it feels like that you kidding me ????? !!!!! :-)
I have the same script in my PPM object. If you have not noticed, look up. So .... thank you for your help. It's so ironic.
Constantly I write here, that brush not work with closed polylines (in script). It works only with circles and rectangles. With closed polylines not work. Or ? Works bad because in TC is bug.

mpavelek

#47
I need not PPM for stupid objects as an Arrow, Circle and Rectangle, sorry. Magic PPM is completely another. Its in the option to change the object. Anytime. Whatever. If I must object explode, this advantage disappears. Then I need not a PPM. I can only work with blocks and groups. And he still edits.

Example. Picture. Sectional doors - one PPM object (SV.ppm  five times inserted in drawing). One click can change everything. If it was a block   â€¦  I will edit him with standard editing tools two hours!!! According to the complexity of the changes.
So, the help that I must object explode its for me very helpful. It's so ironic.

I have hundreds of PPM objects. All are just “plain” 3D model whitout layers,color, pen and material setting. Now I'm doing for them design (materiál setting) and corresponding 2D representation (layers, pen and brush setting). To make PPM object realy usable. So identifying the problems in TurboCAD.

Without 100% functional PPM and patterns copy can I not more (after thirteen years) TC use. And go to Revit.

Torfinn

Hi Dean, Gamle Ørn :)

I was just make a new adjusted ppm that would show the difference, but i read your reply one more time and then i see the qoute of me was between your text, so then i dont need to show it, you know already :)

The point is the pr definision a polyline that start and end in the exact same point should be a "closed" polyline in ppm, but not with brush for some reason i dont know, thats why i report it as a Bug.
It work like a charm in SD, so why not in TC.
I have asked for help about this question, so hopefully, in a day or two i get an answer, possible/ not possible, we see :)

mpavelec
In one of your reply's you tell you have made a full house with ppm, did you use rooftiles there ??, if so, dos it work good on a big roof, 1000-1500 tiles and up, in case, how is it written ;);)
As this is what i want to have a possebility to use Blocks in a ppm for.
And we cant do that at the moment, so just use a "fake" roof, a plate with a picture on, i dont like that :)

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

mpavelek

Torfinn, I design and build mostly other buildings. Classic pitched roofs with tiles I propose just rarely. My designs are inspired by funcionalismus.
Therefore, I have not yet PPM symbol for the classic sloping wooden roof with tiles. I do not need him in my work. But in time I'll probably do it.