.NET

Reply
Active Contributor
Posts: 28
Registered: ‎11-29-2005
Message 1 of 8 (189 Views)

Polyline explode method

189 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
Message 2 of 8 (189 Views)

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
Posts: 28
Registered: ‎11-29-2005
Message 3 of 8 (189 Views)

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
Message 4 of 8 (189 Views)

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
Posts: 28
Registered: ‎11-29-2005
Message 5 of 8 (189 Views)

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
Posts: 1,691
Registered: ‎12-15-2003
Message 6 of 8 (189 Views)

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
Posts: 28
Registered: ‎11-29-2005
Message 7 of 8 (189 Views)

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
Message 8 of 8 (189 Views)

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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community