Forum Replies Created
-
AuthorPosts
-
Péter BaksaKeymaster
Hello,
all the points you want to adjust have to be parameters. Simply code them as editable hotspots.
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter BaksaKeymasterWhy do you need to access the file in the parameter script?
What kind of information is stored in the file, and why do you want to change parameters based on that?Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter BaksaKeymasterorig_A and orig_B don’t have to be parameters, they can be variables or numbers in the code too. Maybe it’s easier to find them if they are parameters.
Another solution can be to resize the drawing to be 1×1 m, thus you can writeMUL2 A, B
instead ofMUL2 A/1, B/1
. A and B can be the original size of the drawing in this case.Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter BaksaKeymasterThe reason is hotlinks – by design this is the name of the host project, but modules are read-only, they can’t change their contents’ parameters.
Could you elaborate on the problem to solve? Why do you place the information to compare in the filename and a text file? Maybe other workflows are possible: embedded text file in the project, properties, library globals, model view options, etc…
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter BaksaKeymasterHi Manuel,
from the script you don’t have it. For what would you need it?
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter BaksaKeymasterThe fix is targeted for the next AC23 update. I cannot say a date. Generally I am not in a position to handle the priority of bugs, please contact GRAPHISOFT support. Things might go faster if they know about it.
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter BaksaKeymasterHi James,
Sorry, this is a bug with other markers and labels too.
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter BaksaKeymasterCheck whether the swing lines work with the same transformations as the door leafs. Is there an extra or missing del somewhere before the subroutine call?
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter BaksaKeymasterNot really, the library isn’t designed to allow communication between objects.
There maybe a hackish solution using the text I/O addon, but that wouldn’t handle delete, undo/redo and copy/paste workflows.After placement ArchiCAD will auto-increment the ID of the next element in the infobox if it ends with a digit.
You can use GLOB_INTGUID if you don’t need to count the objects, just a distinct ID.
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter BaksaKeymasterHi Joachim,
“Story” is not available in parameter script.
You can use REQUEST (“Home_story”, “”, index, story_name) instead. A zone can be higher than one story, but always has a home story.Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter BaksaKeymasterHi Benjamin,
TEXTBLOCK width can be 0 to automatically calculate the width, or you can give a value, and that will be used.
You can later place that texblock with RICHTEXT2, so there is the place for transformations if the width is automatic.
Also you can return values from macros using RETURNED_PARAMETERS, maybe the width calculation is better to be done in the macro.
We have a tutorial about TEXTBLOCK:
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter BaksaKeymasterHi,
Does it help if your polygon is regularized? Counterclockwise order of points, no self-intersection, no points on other edges.
Currently we don’t have an universal solution for area calculation in the ARCHICAD Library.
You can write your own code using the Shoelace formula.Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter BaksaKeymasterI will reply when I have an answer to that.
Meanwhile could you describe why do you need this solution? Couldn’t a Library global work for you?Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter BaksaKeymasterHi Nick,
this document says that MASTER_GDL is executed after loading the library.
It says it can include GDL extension-specific commands. I tried with the DateTime add-on, that works. Macro calls are not listed though.Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter BaksaKeymasterHi, sorry, but it is not possible currently.
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SE -
AuthorPosts