News:

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

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 Script help

Started by rburgess, November 20, 2018, 03:59:26 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

rburgess

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.

Torfinn

#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 ??
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

nikkipollard

#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 .
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Torfinn

Thanks Bob

Then i have an idea of what you thinking about

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

nikkipollard

#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.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Torfinn

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
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

nikkipollard

Thanks Torfinn. I am trying to sort those little things out.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

nikkipollard

#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.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Torfinn

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
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

nikkipollard

Oh I thought I was doing something wrong. It would be nice if TC updated to SD. Splines and ellipses are something I miss.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h