Adress of ArchiCAD library
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-06-26 05:23 PM
to scan the folder,
how can i get it ?
is there any request or req command for that ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-06-26 06:59 PM
Perhaps you can work backwards.
Note that if the object is living in an .lcf [a container] you will need to extract.....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-06-26 07:42 PM
it's to make an object that will find automaticly a macro object in a library.
the macro object will be make by the user of my script, so i can't give a name to call the macro, like: "CALL "name.gsm" ....
the user don't have notion about GDL scripting, so my script have to find alone the macro and propose it to the user
but the library won't be located on the same folder from a computer to an other or from an archicad version to an other.
so i need to get the library adress and would know if it's possible to get it by a special command like REQ or REQUEST, maybe REQ("adress of librarie"), for example...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-06-27 12:58 AM
item='abc'
CALL item ...
Or is it the case that the user does not even know name.gsm?
AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-06-27 01:53 AM
Jevrod wrote:I didn't thick ArchiCAD cared about the folder structure when looking for library parts/macros. As long as it's in a loaded library somewhere, it will find it.
....but the library won't be located on the same folder from a computer to an other or from an archicad version to an other....

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-06-27 02:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-06-27 08:35 PM
"Script it and they will come"
i search a command like this:
REQ( "adress of the library" )
REQUEST( "adress of library", "", adress )
or
REQUEST( "emplacement of archiCAD folder", "" , adress )
is a command like this exist ?
it's too much complex to explain why i need it, but i want to find the adress of archiCAD librairy folder, maybe this or an other solution ?
if it's not possible i will find an other way.. thanks for your help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-06-28 01:38 PM
Possibly AC12 GDL Reference Manual, page 306 can help,
here a folder's content is listed after a dialog is shown;
topFolder = open( "FileMan", "MyFavouriteFolder", "files, dialog" )
y = 0
n = input( topFolder, 0, 0, fileName )
while n = 1 do
text2 0, y, fileName
y = y - 0.6
n = input( topFolder, 0, 0, fileName )
endwhile
close( topFolder )
--
regards, Juha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-06-28 04:32 PM
like this, i don't have the adress, but the user can search the folder with the dialog box
thanks juha

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-06-30 07:45 AM
--Roberto Corona--
www.archiradar.com
AC18 - ITA full on Win10
_________________
_________________