Author Topic: Add attributes to polyline  (Read 6196 times)

0 Members and 1 Guest are viewing this topic.

mailmaverick

  • Bull Frog
  • Posts: 493
Add attributes to polyline
« on: May 06, 2014, 11:28:11 AM »
Dear All

Can we add attributes to a polyline entity without making it a block ?

Bhull1985

  • Guest
Re: Add attributes to polyline
« Reply #1 on: May 06, 2014, 11:34:41 AM »
attributes by definition are a part of a block

ymg

  • Guest
Re: Add attributes to polyline
« Reply #2 on: May 06, 2014, 11:38:12 AM »
You could however use xdata.

ymg

mailmaverick

  • Bull Frog
  • Posts: 493
Re: Add attributes to polyline
« Reply #3 on: May 06, 2014, 11:50:08 AM »
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.

mailmaverick

  • Bull Frog
  • Posts: 493
Re: Add attributes to polyline
« Reply #4 on: May 06, 2014, 11:50:52 AM »
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 ?

ymg

  • Guest
Re: Add attributes to polyline
« Reply #5 on: May 06, 2014, 12:12:55 PM »
mailmaverick,

Unfortunately it will not be shown in the property window.

You can experiment with them using Express tools "Attach Xdata " and "List Xdata"

Quote
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:

chlh_jd

  • Guest
Re: Add attributes to polyline
« Reply #6 on: May 06, 2014, 01:42:14 PM »
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 .

MORITZK

  • Mosquito
  • Posts: 18
Re: Add attributes to polyline
« Reply #7 on: May 06, 2014, 01:48:17 PM »
Dear mailmaverick ,
check this.
http://www.theswamp.org/index.php?topic=33078.0
Moritz
« Last Edit: May 06, 2014, 01:53:09 PM by MORITZK »

Bhull1985

  • Guest
Re: Add attributes to polyline
« Reply #8 on: May 08, 2014, 10:30:42 AM »
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
« Last Edit: May 08, 2014, 10:34:40 AM by Bhull1985 »

ymg

  • Guest
Re: Add attributes to polyline
« Reply #9 on: May 08, 2014, 11:43:44 AM »
Bhull,

Quote
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
is way cool! (Thanks MORITZK had not seen it.)

ymg

Bhull1985

  • Guest
Re: Add attributes to polyline
« Reply #10 on: May 08, 2014, 02:44:07 PM »
Thank you ymg, it was mainly in reply to msg #3 by the OP...I don't believe he understood what that meant heh

mailmaverick

  • Bull Frog
  • Posts: 493
Re: Add attributes to polyline
« Reply #11 on: May 09, 2014, 09:16:11 AM »
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.


HasanCAD

  • Swamp Rat
  • Posts: 1422
Re: Add attributes to polyline
« Reply #12 on: May 11, 2014, 08:29:30 AM »
Wha tabout FIELD?