.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Polyline explode method

7 REPLIES 7
Reply
Message 1 of 8
bolek75
356 Views, 7 Replies

Polyline explode method

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
7 REPLIES 7
Message 2 of 8
Anonymous
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
Message 3 of 8
bolek75
in reply to: bolek75

Is there a way to assign extra information data to the single lines anyway?

bolek75
Message 4 of 8
Anonymous
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
Message 5 of 8
bolek75
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.
Message 6 of 8
NathTay
in reply to: bolek75

Can you make the lines database resident.

Regards - Nathan
Message 7 of 8
bolek75
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
Message 8 of 8
Anonymous
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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost