TurboCAD Forums

The Ultimate Resource for TurboCAD Knowledge

Register
 
Interested in some really terrific mobile apps? Visit www.turboapps.com for details.

PPM Script help
Read 1109 times
* November 20, 2018, 03:59:26 PM
I have been trying (unsuccessfully to-date) to write a ppm script to create a ppm window symbol where the opening styles can be either fixed glass, sash or louvers and the number of panes can be changed, eg from 1 to 4.
Are their any script writing experts that may be able to assist me with this challenge. Any help would be appreciated.

Logged


* November 20, 2018, 04:30:49 PM
#1
I dont know the names on windows style in English, so if i should understand what you want you need to Draw and add some quick sketches of them, i understand fixed glass and 1-4 panes, else its Greek to me :)

Nikki made a nice simple window with 3 "sections", and it was possible to change from normal to some kind of ventilation glass system of x numbers of glass that would let the airflow go true it for ventilation of room/ house, typical for hot areas, where i dont live ;)
That window did show a lot of stuff possible to do with PPM windows, if you have looked at it, but dont understand what she did and why, make an small sketch of it and i can make one based on Nikki's window.
I tend to put more detail in to the PPM's that i really dont need, but that is how i like them, more like real world, even if i also need to take down the detail level to make them work quicker.

Torfinn

Edit;
Now i know :), Sash is like TC's Double Hung and the "ventilation" window is Louvers :)
So then the Q is, should all 1-4 be the same kind ??
« Last Edit: November 20, 2018, 05:01:15 PM by Torfinn »

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


* November 21, 2018, 12:01:37 AM
#2
Maybe this will help - an explanation of
my curtain wall ppm roughly based on a stick curtain wall system.
It uses styles and you can have any number of panels.
and how I would apply the same principle to a window. This is just basic so you will need to edit it .
« Last Edit: November 21, 2018, 03:26:56 AM by nikkipollard »

Logged
Nikki
TC20 platinum
TC 2015 platinum
TC 2017 with lightworks


* November 21, 2018, 02:47:32 PM
#3
Thanks Bob

Then i have an idea of what you thinking about

Torfinn

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


* November 21, 2018, 09:33:30 PM
#4
Here are 2 windows
 example 1 , set a number of divisions up to 15 all the panels will have the same style,  choose between, fixed, sash or louvred. (you can increase this number (15) by changing the increment value in the ppm)

example 2 .   Set a number of divisions up to 6 (as requested) . each panel has its own style setting style 1, style2 etc so you can have any pattern combination.
I have changed the louvre macro since the last time.
I have renamed it to avoid conflict with the original one. keep both louvre macros.

The other files are also macros and will need to be in the same folder or a sub directory called macro.
There might be a few copies of files I gave you originally there shouldn't be any difference.
« Last Edit: November 22, 2018, 05:02:07 AM by nikkipollard »

Logged
Nikki
TC20 platinum
TC 2015 platinum
TC 2017 with lightworks


* November 22, 2018, 02:23:10 AM
#5
Thanks Nikki,
work like a charm
I could think you have it nearly finish already as you use the same types.

But i still would not put in LINEAR in a place that should show % openings and not "mm" ;)
Guess thoes lines are copyNpaste and then adjusted

Torfinn

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


* November 22, 2018, 05:09:10 AM
#6
Thanks Torfinn. I am trying to sort those little things out.

Logged
Nikki
TC20 platinum
TC 2015 platinum
TC 2017 with lightworks


* November 22, 2018, 09:08:28 PM
#7
It is a pleasure Bob.  I call it structured procrastination. - much more fun then real work.
 

I also resisted learning to write scripts, because I am not a programmer. But then I started to look at other programs - I watched lots of tutorials for both revit and archicad. Their customizing systems seem a lot more complicated. If there are so many tutorials for both programs then there must always be a need to customize the program to your own needs (regardless of what you pay for the program) . I tried constraints - because that is a visual method- but there are too many bugs with that system.
Eventually I looked at the scripting system.
 Once you figure out the basics - it isn't that difficult. The maths is the hardest part - but it is maths you use when drawing with CAD anyway. SD (the symbol designer) Torfinn uses is more visual - you might want to try that instead.
 
« Last Edit: November 22, 2018, 11:31:06 PM by nikkipollard »

Logged
Nikki
TC20 platinum
TC 2015 platinum
TC 2017 with lightworks


* November 22, 2018, 11:46:45 PM
#8
Hi Nikki

I dont use SD on a regular basis, as it have commands that TC cant use, but i do promote it as it is PPM v2, and i would like TC to get all the commands SD have in TC ;):)
What's really good in SD is that it will tell you what if anything is wrong in the PPM, PPM v 1 in TC only tell you what line there is a fault on, but dont give you any idea of what it is.

Torfinn

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


* November 22, 2018, 11:53:35 PM
#9
Oh I thought I was doing something wrong. It would be nice if TC updated to SD. Splines and ellipses are something I miss.

Logged
Nikki
TC20 platinum
TC 2015 platinum
TC 2017 with lightworks