Rolinger wrote: ↑Wed Mar 05, 2025 7:44 pm
Now I wonder if that's even possible?
With scripting almost anything is possible, your imagination and scripting skills are the limit.
Remark that most QCAD tools are scripts.
Not as you described in the 1-4 sequence, we are not going to copy the block name to the OS clipboard.
The QCAD clipboard is intended for copying geometry and the Specific Property is not yet a Text entity.
Rolinger wrote: ↑Wed Mar 05, 2025 7:44 pm
and run a script with a shortcut
You can run a custom script with
XC and indicating a script file from a file list.
'
With a shortcut' ... Then it must be conceived as an Addon tool ... Remark that there are not many shortcut combinations left over.
Also, as Addon it has an action button ... For example listed under Misc .. Block
Already happy that your QCAD GUI is in English.
For a single Block Reference that could be conceived as:
- Select 1 Block Reference entity
- Initiate custom Addon tool
- Place text entity (With preview).
But that would still require 3x250 independent actions.
Automated can be as:
- Selection filtered for Block Reference entities
- Initiate custom Addon tool
- Place a text entity for each.
Or by selecting the Block name in the Block List and then for all Block Reference entities that refer to that Block.
Or for all Block Reference entities that exists in the drawing at once.
As said, almost anything is possible but you need to decide on a plan of attack.
For 'automated' you need to specify the relative placement of the Text in regards with the Block_Ref. insertion point.
Otherwise it is simply put at the Block_Ref. insertion point ... (The blue squared marker in your screen capture)
Automated there is no user interaction for arranging that individually.
But even that is possible ... Again 3x250 manual interactions for a single run ... You will get bored by indicating all these.
(Similar to 'Reorder'
MO until they are all green)
Also: How this text is aligned, 3x4 options, from left high to right low.
Angled? Consider Block_Ref. angle?
Considering Block content? In the Middle? Or right low?
What font, font size and color?
A dedicated layer or not?
Selected in Block List ... Only for Model_space or process stacked Blocks?
...
..
In other words ... Before we can code something, we need to know the requirements.
Regards,
CVH