TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: mailmaverick on May 06, 2014, 11:28:11 AM
-
Dear All
Can we add attributes to a polyline entity without making it a block ?
-
attributes by definition are a part of a block
-
You could however use xdata.
ymg
-
attributes by definition are a part of a block
As mentioned in my original post, I want to add attributes without making it a block.
-
You could however use xdata.
ymg
Dear ymg,
Can you send me some example to add XDATA ?
Also if i add XDATA, will it be visible in properties window when we double click the polyline ?
-
mailmaverick,
Unfortunately it will not be shown in the property window.
You can experiment with them using Express tools "Attach Xdata " and "List Xdata"
Command: xdata
Initializing...
Select object:
Enter application name: test
TEST new application.
Enter an option
[3Real/DIR/DISP/DIST/Hand/Int/LAyer/LOng/Pos/Real/SCale/STr/eXit] <eXit>: r
Enter real number: 123456.693
Enter an option
[3Real/DIR/DISP/DIST/Hand/Int/LAyer/LOng/Pos/Real/SCale/STr/eXit] <eXit>:
New xdata appended.
Command:
Command: xdlist
Select object:
Enter application name <*>: test
* Registered Application Name: TEST
* Code 1002, Starting or ending brace: {
* Code 1040, Real number: 123456.693
* Code 1002, Starting or ending brace: }
Object has 16367 bytes of Xdata space available.
Command:
-
What are you want to do this ?
If want polyline with text which can be edit and lock their relative position , you can use Geometric constraints .
If want polyline with attributes and lock their position , just like Bhull said , only can be used is block .
If want to show text info with it and not to be seen directly , can use Xdata though command "Xdata" or vla-setXData or set-description .
-
Dear mailmaverick ,
check this.
http://www.theswamp.org/index.php?topic=33078.0
Moritz
-
attributes by definition are a part of a block
As mentioned in my original post, I want to add attributes without making it a block.
Then you'd be adding "text entities" because to have "Attributes" means that you're also dealing with a block. You can't have attributes without a block. You can put text entities besides your polylines that would make them appear as attributes, but again....they'd be text entities and not attributes. In fact as far as I know the only thing that separates text entities from attributes is if they're belonging to a block=attribute, not belonging to a block=text entity.
Or, in short, and in response to your original post / question of "Can we add attributes to a polyline without making it a block" ..
Answer: No. you can add text entities and "group" them with your polyline to create attribute-esqe entities...but if you're looking for functionality to where you can doubleclick anywhere on the polyline to have the text editor dialog pop up for the text entities, then I think your best bet is to simply start using block objects
-
Bhull,
attributes by definition are a part of a block
There is no doubt that your original answer is correct.
The rest of the thread is simply suggestion to somewhat mimic
the functionnality.
The link to Gile Chanteau's routine dynamic info display (http://www.theswamp.org/index.php?topic=33078.0)
is way cool! (Thanks MORITZK had not seen it.)
ymg
-
Thank you ymg, it was mainly in reply to msg #3 by the OP...I don't believe he understood what that meant heh
-
Thank you ymg, it was mainly in reply to msg #3 by the OP...I don't believe he understood what that meant heh
Yeah thanks for correcting me.
-
Wha tabout FIELD?