.NET

Reply
Active Contributor
28 Posts
0 Kudos
Registered: ‎11-29-2005
Post 1 of 8

Polyline explode method

202 Views, 7 Replies
03-28-2006 05:28 AM
Hi NG,

I am using the explode() methode to retrieve the single lines of a polyline. Unfortunatally thie ObjectID of the lines is not set. What does it mean. Do theses lines not exist in the database?
My intent is to assign XData information to the single lines. How to tackle this?

Cheers
bolek75
*Bobby C. Jones
Post 2 of 8

Re: Polyline explode method

03-28-2006 08:06 AM in reply to: bolek75
Correct, the objects returned by this method are not database resident.
--
Bobby C. Jones

wrote in message news:5123782@discussion.autodesk.com...
Hi NG,

I am using the explode() methode to retrieve the single lines of a polyline.
Unfortunatally thie ObjectID of the lines is not set. What does it mean. Do
theses lines not exist in the database?
My intent is to assign XData information to the single lines. How to tackle
this?

Cheers
bolek75
Active Contributor
28 Posts
0 Kudos
Registered: ‎11-29-2005
Post 3 of 8

Re: Polyline explode method

03-28-2006 10:54 PM in reply to: bolek75
Is there a way to assign extra information data to the single lines anyway?

bolek75
*Bobby C. Jones
Post 4 of 8

Re: Polyline explode method

03-29-2006 02:35 PM in reply to: bolek75
Sure, You can assign xdata to non-database resident objects.

nonDbResidentObject.XData = new ResultBuffer(
new TypedValue((int)DxfCode.ExtendedDataRegAppName, "YourRegAppName"),
new TypedValue((int)DxfCode.ExtendedDataReal, 2.2)
);

You'll need to make sure that there is a RegAppTableRecord with your apps
name in the RegAppTable.
--
Bobby C. Jones

wrote in message news:5124964@discussion.autodesk.com...
Is there a way to assign extra information data to the single lines anyway?

bolek75
Active Contributor
28 Posts
0 Kudos
Registered: ‎11-29-2005
Post 5 of 8

Re: Polyline explode method

03-30-2006 04:37 AM in reply to: bolek75
Hi Bobby,

but the thing is, that when I read the polyline for the next time, all the xdata information of the single lines got lost interim. The reason is of course that the objects are non-database persistent.
Therefore it is not the solution to my problem.
Distinguished Contributor
1,691 Posts
3 Kudos
Registered: ‎12-15-2003
Post 6 of 8

Re: Polyline explode method

03-30-2006 02:05 PM in reply to: bolek75
Can you make the lines database resident.

Regards - Nathan
Active Contributor
28 Posts
0 Kudos
Registered: ‎11-29-2005
Post 7 of 8

Re: Polyline explode method

03-30-2006 11:23 PM in reply to: bolek75
Yes of course I can make the lines database persistent but then I lose the reference to the polyline (quasi a parent-child relationship). I would like the lines to leave to be part of the polyline.

Cheers
bolek75
*Tony Tanzillo
Post 8 of 8

Re: Polyline explode method

03-31-2006 04:12 AM in reply to: bolek75
You could use a 'heavy' polyline, where each vertex is a seperate
database-resident entity that can have xdata attached to them,
but even that may not be a good idea, because user commands
like PEDIT can blow away vertices, and there may be some editing
operations that *appear* like editing, but in fact, are achieved by
replacing existing polylines and vertices with new objects, in which
case, goodbye xdata.

See the PLINETYPE system variable.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

wrote in message news:5128007@discussion.autodesk.com...
Yes of course I can make the lines database persistent but then I lose the reference to the polyline (quasi a parent-child relationship). I would like the lines to leave to be part of the polyline.

Cheers
bolek75
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!