cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The 2025 Technology Preview Program is now live. Join today!

GDL
About building parametric objects with GDL.

Archicad 28 OpeningLines Macro

vdentello
Advocate

Despite every effort made, I can't call OpeningLines correctly within the 3D script, 

 

I've requested the values from the new DW_MVOSettings rather than the old LibraryGlobals13, I think I created the right Dictionaries at the parameters.

But as I request the Lines to be drawn, I get an error that says: Dictionary not initialized or invalid at line 72 at the macro's 3D script (OpeningLines).

What could be wrong? 

I'm trying to push 

MVODoorOpLineOptions into opLineOptions, the GDL guide says that dictionaries can't be passed on a macro request, yet, it seems to be exactly what is being done at the regular object from the new library pack. Any tips?
 
dict MVODoorOpLineOptions

MVODoorOpLineOptions.symbol3D.swingOrientation = 0
success = LIBRARYGLOBAL ("DW_MVOSettings", "iDW3DLineOrient", requestValue)
if success > 0 then	MVODoorOpLineOptions.symbol3D.swingOrientation = requestValue

MVODoorOpLineOptions.symbol3D.show	= 0
success = LIBRARYGLOBAL ("DW_MVOSettings", "bDoor3DOpLine", requestValue)
if success > 0 then	MVODoorOpLineOptions.symbol3D.show = requestValue

MVODoorOpLineOptions.symbol3D.typeOut = 0
success = LIBRARYGLOBAL ("DW_MVOSettings", "iDW3DOppositeSideOpLineType", requestValue)
if success > 0 then	MVODoorOpLineOptions.symbol3D.typeOut = requestValue

MVODoorOpLineOptions.symbol3D.typeIn = 0
success = LIBRARYGLOBAL ("DW_MVOSettings", "iDW3DOpeningSideOpLineType", requestValue)
if success > 0 then	MVODoorOpLineOptions.symbol3D.typeIn = requestValue

		call "OpeningLines" parameters a = a,
					b					= b,
					frameThickness		= gs_leaf_thk,
					iOpeningType		= 4,
					opLineOptions = MVODoorOpLineOptions
Archicad User Since 2013
GDL Developer
Experimenting with API
from Brazil
3 REPLIES 3

Hi,

Here is my version of "GetDWOpLines.gsm" macro used in older doors/windows which I modified to be usable with both library types

But it is reading only the INT MVO for doors & windows. it can be modified further to be compatible with DACH/ USA and whatever different config of libpack is used.

I still wasn't able to get it to work, the requests seem to be doing right, I was able to print the captured values accordingly.

It's the Macro call that fails. Specifically at 

 

opLineOptions = MVODoorOpLineOptions

 

The error itself happens in the macro script after the Dict is passed (as far as it seems) according to the warning:

 

vdentello_1-1753276928039.png

 

Archicad User Since 2013
GDL Developer
Experimenting with API
from Brazil

I have also replaced the openinglines macro with the old one(renamed) in the object (from 26 in this scenario), sorry I did not clarify in the first place.