Accessing Project Info Values
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-12-07 05:07 PM
I'm sure there must be a simple command that accesses the Project Info variables (Client, Project Name, Project Number, etc.) in GDL - can anyone please tell me how to do this?
Thanks,
Derek
http://derekjackson.artstation.com
AC19 / 21 / 23 / 27
Windows 7 Intel Xeon 18Gb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-12-09 03:21 AM
Barry.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-12-09 05:40 AM
Karl
AC 28 USA and earlier • macOS Sequoia 15.2, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-12-09 10:40 AM
Adding the line
"Client: " + <CLIENT> + "\n"into the Paragraph definition just gives me the error 'Error in Expression'.
It doesn't seem to recognise <CLIENT>, for some reason.
Any ideas what I'm doing wrong?
http://derekjackson.artstation.com
AC19 / 21 / 23 / 27
Windows 7 Intel Xeon 18Gb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-12-09 11:32 AM
I think you should use the autotext as any other string inside the paragraph.
For example;
myText= "Client: <CLIENT>\n"
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-12-09 11:46 AM
instead of referencing the Client value from Project Info....
http://derekjackson.artstation.com
AC19 / 21 / 23 / 27
Windows 7 Intel Xeon 18Gb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-12-09 12:10 PM
You're right: the autotext seems to work in 2D but not in 3D
This works in 2D:
myText= "Client: <CLIENT>\n" paragraph "ptxt10" 1, 0, 0, 0, 1 myText endparagraph textblock "btxt10" 0, 7, 0, 1, 1, 1, "ptxt10" richtext2 0, 0, "btxt10"
This does not in 3D:
myText= "Client: <CLIENT>\n" paragraph "ptxt10" 1, 0, 0, 0, 1 myText endparagraph textblock "btxt10" 0, 7, 0, 1, 1, 1, "ptxt10" richtext 0, 0, 0.002, 0, "btxt10"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-12-10 02:53 AM
Juha wrote:Sorry.
You're right: the autotext seems to work in 2D but not in 3D
I knew it worked in 2D and I just assumed (incorrectly) it would also work in 3D.
I should know by now to NEVER assume anything in Archicad.
Always check first!
So now we have the problem that the actual values for the project info fields can't be extracted.
Unless the Project Info is manually saved as an XML file when ever there is a change.
Or create your own Project Info object that can write a text file automatically when the parameters are updated.
You may as well just create a 3D sign-board object and add the data if that is the only object that needs it though.
There must be a way of getting the project info data without saving the XML file but only GS could tell us.
Or maybe an API can access this data but that is beyond me at the moment.
Barry.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-12-10 10:19 AM
Barry wrote:It just seems bizarre that the object can read the info for it's 2D display, but can't then pass it into the 3D display! I think getting the user to re-enter the project info is probably the easiest solution in this case...Juha wrote:Sorry.
You're right: the autotext seems to work in 2D but not in 3D
I knew it worked in 2D and I just assumed (incorrectly) it would also work in 3D.
I should know by now to NEVER assume anything in Archicad.
Always check first!
So now we have the problem that the actual values for the project info fields can't be extracted.
Unless the Project Info is manually saved as an XML file when ever there is a change.
Or create your own Project Info object that can write a text file automatically when the parameters are updated.
You may as well just create a 3D sign-board object and add the data if that is the only object that needs it though.
There must be a way of getting the project info data without saving the XML file but only GS could tell us.
Or maybe an API can access this data but that is beyond me at the moment.
Barry.
http://derekjackson.artstation.com
AC19 / 21 / 23 / 27
Windows 7 Intel Xeon 18Gb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-12-19 06:05 PM
I recorded this as a wish for later versions. I don't know any workaround until then:(
Regards,
ArchiCAD Development - GDL Team
AC13, AC14 and upwards...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-12-20 03:35 AM
ztaskai wrote:I'm a little over my head here but...
Unfortunately, autotext is not supported in 3D. Autotext is basically a substitution in the 2D text drawing.
I recorded this as a wish for later versions. I don't know any workaround until then:(
Zsolt, does autotext not work even in the master script then? If it does, a workaround could be to convert it to a string in the master script first.
If
bT Square Peg
https://archicadstuff.blogspot.com
https://www.btsquarepeg.com
| AC 9-27 INT | Win11 | Ryzen 5700 | 32 GB | RTX 3050 |