.NET

Reply
Distinguished Contributor
171 Posts
4 Kudos
Registered: ‎09-26-2008
Post 11 of 11

Re: SelectionSet from ObjectIds

06-01-2013 04:22 PM in reply to: DiningPhilosopher

DP thank you.  Unexpectedly I manage to get something working.  I am not sure how it works but it works.  I am only using the command line wrapper to create polylines.  This code works on AutoCAD 2012 vanilla, perhaps it did not work before because I was running the code in AutoCAD 2012 Mechanical.  I am having an issue with the DIMSCALE for dimensions in AutoCAD 2012 Mechanical, so may be the problem with selectionsets is just in AC Mech.

 

SS = SelectionSet.FromObjectIds(ids)

Ed.SetImpliedSelection(SS)

Ed.GetSelection()

CommandLine.Command("_.PEDIT", "_m", "_p", "", "_y", "_join", "", "")

 

 

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!