.NET

Reply
Valued Contributor
95 Posts
3 Kudos
Registered: ‎04-04-2012
Post 1 of 2

Changing 3D View to Top View

93 Views, 1 Replies
08-02-2013 03:17 AM

Thank you for the clue.

 

I tried this, but I am still stuck.

 

How do I join the entities?
I guess if they are only lines, I can just create a new polyline with every vertices of the lines.
But I have arcs as parts of the entities, I don't think I can just link as a polyline for an arc.

 

So I tried the following...

 

ObjectId[] oIDs = oIDList.ToArray();
Editor ed = doc.Editor;
ed.SetImpliedSelection(oIDs);
PromptSelectionResult psr = ed.SelectImplied();
if (psr.Status == PromptStatus.OK)
{
       doc.SendStringToExecute("._PEDIT\n_m\n_p\n\n_y\n_join\n\n\n", true, false, false);
}

 

It works, but this is not the perfect solution I wanted.
I need to Transform the joined polyline, meaning I need to get the ObjectId of newly created joined polyline.
I guess I can use ObjectAppended?

 

Or is there any other simpler way to join the entities???

*Expert Elite*
1,569 Posts
171 Kudos
Registered: ‎10-08-2008
Post 2 of 2

Re: Changing 3D View to Top View

08-02-2013 03:43 AM in reply to: dynamicscope
If you ignored the answer to your previous topic, I do not think that there are many persons who want to respond to you on this specific topic
Keep track of your topics before
_____________________________________
C6309D9E0751D165D0934D0621DFF27919
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!