Sustituting defaults when missing from library
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-01-19 08:49 PM
2005-01-19
08:49 PM
Is there a way to get an object to substitute a default image when the one called by a libray part is not currenlty loaded into the library? I get the following warning when a specific image is not available.
"Cant find picture file:testpic, called at line 4 of xxxx.gsm"
Also, when an object is calling another object, is there a way to verify if the called object is not available and substitue some default script instead?
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-01-19 11:37 PM
2005-01-19
11:37 PM
dan,
the only thing I can think of is using GDL file manager in/out (see the AC help for more info). unfortunately it is a very clunky approach because it works differently on mac and win platforms due to a different filepath syntax which is a major disadvantage.
actually, if there is another way how to handle this, I would like to know that as well (thinking of the very same problem lately).
the only thing I can think of is using GDL file manager in/out (see the AC help for more info). unfortunately it is a very clunky approach because it works differently on mac and win platforms due to a different filepath syntax which is a major disadvantage.
actually, if there is another way how to handle this, I would like to know that as well (thinking of the very same problem lately).
::rk
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-01-20 12:49 AM
2005-01-20
12:49 AM
Dan wrote:If I understand what you are asking, you You can load any image through the Library Manager named "testpic" and the library part in question will find it.
Is there a way to get an object to substitute a default image when the one called by a libray part is not currenlty loaded into the library? I get the following warning when a specific image is not available.
"Cant find picture file:testpic, called at line 4 of xxxx.gsm"
Dan wrote:If you get an error saying it can't find the object it is not available. If the part it's looking for is included in a separate PLA there's no way to find it without unpacking the PLA. You could create anything (load it as a library part) and give it the same name that the object in question is looking for and it may or may not show up. You could get some really crazy results or a lot of error messages. Sometimes I create an object that just uses the "A" and "B" (X and Y) like "RECT" or CIRCLE (with a hard number as the "r" value) just to see what and where it might be.
Also, when an object is calling another object, is there a way to verify if the called object is not available and substitue some default script instead?
Hope this helps... say hi to Steve.
Woody
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-01-20 03:14 PM
2005-01-20
03:14 PM
woodster wrote:Hello Woody,Dan wrote:If I understand what you are asking, you You can load any image through the Library Manager named "testpic" and the library part in question will find it.
Is there a way to get an object to substitute a default image when the one called by a libray part is not currenlty loaded into the library? I get the following warning when a specific image is not available.
"Cant find picture file:testpic, called at line 4 of xxxx.gsm"
That's not quite what I 'm looking for. What I really need is some sort of GDL syntax to use so that I can verify if a particular image or object to be "subsequently" called is available in a loaded library...If it's not, I would like to be able to issue a warning with the print command:
Print "Requested image/object not loaded in library - default image/object substituted"
I guess what I really need is some sort of request command that I verify against a variable - if they don't equal then the argument is not valid and I would direct the object to a default image or default portion of the script.
Basically, I want to determine if the called item is potentially available before ArchiCAD gives me the warning so I can redirect the object to do something else.
I hope this makes sense
Thanks