We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2022-07-19 01:56 AM
I have made a custom outlet object and I have modified the objects 2D settings to show a custom 2D symbol. Can anyone tell me how hard it would be to be able to add enough GDL code to be able to turn the plan symbol on and off via with a check box in the objects settings?
2022-07-19 02:24 AM
The answer depends on how you created the 2D representation, but either way it is simple to achieve.
If you created your 2D symbol by adding 2D elements into the objects "2D Symbol" window then you will have to wait for someone else to respond as I don't use this method. From memory each element has a "Layer" from 1 to 16 and then you can nominate which layers are on and off when you use the FRAGMENT2 command.
If you scripted the symbol in the "2D Script" (this would also work if using FRAGMENT2) then you simply create the boolean parameter (eg. "bSymbol2D") to turn the symbol on and off and then in 2D script you use this parameter in an "IF" statement.
eg.
if bSymbol2D then
"......... 2D symbol script..........."
endif
2022-07-19 10:29 AM
@gdford Just watch if you have no 2D representation as you may loose track of small 3D objects and need Find & Select to locate it.