Hi VisualARQ team, @fsalla
I am trying to create a custom “Eyedropper” script in Python for a smoother, ArchiCAD-like drafting workflow. The goal is simple: The user clicks for example an existing VisualARQ Wall in the model, the script reads its layer and style, and immediately launches the _vaWall command so the user can continue drawing with that exact same style. (The script should be able to read out all different VA Elements like Beams, Slabs, etc. and maybe even use Polyline when clicking a Curve.. I have to think on that, after some stuff works.)
While reading the style of an existing wall (va.GetProductStyle) works perfectly, there is currently no way to pass this information back to the system to set the active/default style for the next drawing operation.
The Problem:
-
Command Line limitation: Trying to force the style via a macro like
-_vaWall _Style "MyStyleName"fails. The command line immediately expects a start point or theFromCurvesoption and throws an “Unknown command” error for the style string. -
Missing API Method: There is no method in the
VisualARQ.ScriptAPI to define the active style programmatically before launching the tool.
We currently have to use a workaround where the script pauses, the user draws the wall blindly (with the wrong visual feedback), and the script applies the style via va.SetProductStyle() after the Enter key is pressed. This completely ruins the live visual feedback during the drawing process, which is crucial for BIM modeling.
Feature Request: To make custom drafting workflows and “Eyedropper” tools possible, we would need one of the following solutions:
-
New API Methods: Something like
va.SetActiveStyle(style_id)orva.SetDefaultWallStyle(style_id)that changes the current active style in the UI programmatically. -
Command Line Fix: Allow the
-_vaWall(and other VA object commands) to accept a_Styleparameter via the command line before asking for the insertion point.
Having this functionality would massively speed up the modeling process, as users wouldn’t have to manually search through the style dropdown every time they want to continue drawing an existing wall type.
Thanks in advance for considering this!
PS: I created the text partially with AI, just to let you know.