LIBRARYGLOBAL for Door Minimum Spaces
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-30
04:23 AM
- last edited on
2023-05-24
10:52 AM
by
Rubia Torres
2013-05-30
04:23 AM
I've been trying to scratch this out for over an hour. I just need to find out the value of the Model View Option for door minimum space.
Is there any decent documentation on this? The GDL Reference Manual and GDL Technical Standards are a bit too vague and cryptic for my tired mind at the moment.
ETA: This is for the US library. I don't know if it would be different for others (though I certainly hope not).
5 REPLIES 5

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-30 05:15 AM
2013-05-30
05:15 AM
I don't know about any good documentation that will help but this might help explain it I hope.
What you need is this ...
success = LIBRARYGLOBAL ("LibraryGlobals13", "showBMinSpace", req_showBMinSpace)
Where "LibraryGlobals13" is the name of the macro that creates what you see in the MVO dialogue box.
It is a bit like the "Master_GDL" macros - you can have as many as you need so long as they are saved with the key words "LibraryGlobals" in the name.
Oddly enough the file in the version 16 AUS library is called "LibraryGlobals13" and not "LibraryGlobals16" - so not sure what the US library is like.
"showBMinSpace" is the name of the parameter that you want to get the value of.
req_showBMinSpace - is the parameter you want the returned value to go to.
the "success =" bit is just needed to avoid an error message.
The value of "success" will be 1 if it can find the parameter you are after and 0 if it can't.
Barry.
What you need is this ...
success = LIBRARYGLOBAL ("LibraryGlobals13", "showBMinSpace", req_showBMinSpace)
Where "LibraryGlobals13" is the name of the macro that creates what you see in the MVO dialogue box.
It is a bit like the "Master_GDL" macros - you can have as many as you need so long as they are saved with the key words "LibraryGlobals" in the name.
Oddly enough the file in the version 16 AUS library is called "LibraryGlobals13" and not "LibraryGlobals16" - so not sure what the US library is like.
"showBMinSpace" is the name of the parameter that you want to get the value of.
req_showBMinSpace - is the parameter you want the returned value to go to.
the "success =" bit is just needed to avoid an error message.
The value of "success" will be 1 if it can find the parameter you are after and 0 if it can't.
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
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
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-30 08:54 AM
2013-05-30
08:54 AM
Thanks very much Barry!
I had it pretty close to what you describe except for quote marks around the parameter name and the req_showBMinSpace variable name.
The part and parameter names are the same in the US library. I'm guessing that's an international standard but since it could be anything I don't like to assume.
What I really don't understand is, if they are trying to give us more control and access to global variables and view options why not give us the information we need? Very frustrating.
...but thanks again for picking up the slack for them. Cheers.
I had it pretty close to what you describe except for quote marks around the parameter name and the req_showBMinSpace variable name.
The part and parameter names are the same in the US library. I'm guessing that's an international standard but since it could be anything I don't like to assume.
Oddly enough the file in the version 16 AUS library is called "LibraryGlobals13" and not "LibraryGlobals16"I assume the part name is because the feature was introduced with AC13.
What I really don't understand is, if they are trying to give us more control and access to global variables and view options why not give us the information we need? Very frustrating.
...but thanks again for picking up the slack for them. Cheers.
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-30 05:37 PM
2013-05-30
05:37 PM
One more thing just for the sake of completeness in case someone searches for this some time.
The target variable ("req_showBMinSpace" in Barry's example) can be named whatever you want within the standard limits for variable names.
The target variable ("req_showBMinSpace" in Barry's example) can be named whatever you want within the standard limits for variable names.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-31 09:35 AM
2013-05-31
09:35 AM
Barry wrote:From my experience it is not necessary, to use the keyword "LibraryGlobals" in the name.
It is a bit like the "Master_GDL" macros - you can have as many as you need so long as they are saved with the key words "LibraryGlobals" in the name.
Barry.
You have to choose the subtype "Library Global Settings" and name it whatever you like; the object should not been placeable as well.
Frank Beister has an example (open library globals) on www.opengdl.org
Jochen Suehlo . AC12-28 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de
GDL object creation: b-prisma.de

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-31 09:42 AM
2013-05-31
09:42 AM
Joachim wrote:Correct.
From my experience it is not necessary, to use the keyword "LibraryGlobals" in the name.
You have to choose the subtype "Library Global Settings" and name it whatever you like; the object should not been placeable as well.
It has been a long time since I have had to set any of this up.

Thanks for the clarification.
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
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