GDL
About building parametric objects with GDL.

object - plumbing point for basin

tomyg
Enthusiast

Hey folks, 

 

Trying to create some new basin object that have the plumbing point attached. Trying to get the plumbing point to display on one level below, so if the basin moves than the plumbing point in the slab plan will go with it. 

 

At the moment they are modeled separatly and grouped. I've tried to save this out as an object but it hasn't worked. Will this have to be scripted into the object? 

 

any help / links or advice would be greatly appricated. 😁

6 REPLIES 6
Barry Kelly
Moderator

How good are your GDL scripting skills?

You would need to script your object so it is sensitive to the storeys.

i.e. so if it is being displayed on a storey that is not the object home storey then it would show only the plumbing connection.

Then you can set the object to show on home storey and one storey down.

It should display the basin on the home storey and the plumbing fixture on the storey down.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

GDL skills are non-existant but i'm thinking it's time to start.... 

 

The library part maker addon can't handle this sort of thing? i've had a quick look into that but it's confusing at best. 

Rajesh Patil
Expert

Any possibility to elaborate this with screenshots? 

Rajesh Patil
AC 09-27 | INT | WIN11 64
Dell Inspiron 7591, Core i9, 9880H 2.30GHz, 16.0GB, NVidia GeForce GTX1650, 4.0GB, SSD Internal 500GB, Dell SSD External 250GB

It has been a while since I have looked at Library Part Maker.

But I don't think it can handle storey sensitivity.

Someone can correct me if I am wrong.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

tomyg want the basin to show differently on the home storey and the storey below.

Something like this.

 

BarryKelly_0-1631684825965.png

I am lazy - I haven't modelled a proper basin.

Here is the code for the 2D script to do the above.

 

LINE_TYPE "Solid"

if GLOB_CH_STORY_DIST = 0 then		!!home storey
	RECT2 -0.3, -0.2, 0.3, 0.2
	CIRCLE2 0,0,0.02
endif

if GLOB_CH_STORY_DIST < 0 then		!!above home storey
	LINE2 -0.04, 0, 0.04, 0
	LINE2 0, -0.04, 0, 0.04
	CIRCLE2 0,0,0.02
endif

 

Note it will take on the storey line types as set in the Project Preferences unless you turn off the 'Override Object's Line Types' in the object settings.

 

BarryKelly_1-1631685287647.png

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

MVP Barry, thank you. i'll use this as a base to build on.... should be somewhat easier to figure out from here, thanks so much.

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!