.NET

Reply
Contributor
aci_cad
Posts: 11
Registered: ‎05-22-2009
Message 1 of 2 (381 Views)
Accepted Solution

Move a block reference

381 Views, 1 Replies
04-23-2013 11:22 AM
I need to select a block in AutoCAD, and move it up or down vertically. I can get to the point where I have the user select a particular block, but after that, how do I get a reference to the block selected so I can move it up or down?

If you're new to AutoCAD .NET programming, you should download the labs, and other learning materials available and go through them. What you're asking is very basic stuff that you need to know before you actually try to write applications or plugins with .NET. Going through the learning materials, labs, and samples will answer your specific question.

 

Once you get the user's selection (an ObjectId), you have to start a transaction, and then use the transaction to open the selected object, using the ObjectId, which is accessed through the PromptEntityResult object returned by the Editor's GetEntity() method. 

Valued Mentor
DiningPhilosopher
Posts: 370
Registered: ‎05-06-2012
Message 2 of 2 (359 Views)

Re: Move a block reference

04-23-2013 05:09 PM in reply to: aci_cad

If you're new to AutoCAD .NET programming, you should download the labs, and other learning materials available and go through them. What you're asking is very basic stuff that you need to know before you actually try to write applications or plugins with .NET. Going through the learning materials, labs, and samples will answer your specific question.

 

Once you get the user's selection (an ObjectId), you have to start a transaction, and then use the transaction to open the selected object, using the ObjectId, which is accessed through the PromptEntityResult object returned by the Editor's GetEntity() method. 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!