2025-07-18 05:53 AM
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
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
2025-07-22 12:58 PM - edited 2025-07-22 12:59 PM
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.
2025-07-23
03:24 PM
- last edited on
2025-07-25
10:52 PM
by
Laszlo Nagy
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:
2025-07-25 07:06 AM
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.