.NET

Reply
Valued Contributor
RamanSBV
Posts: 88
Registered: ‎02-28-2012
Message 1 of 5 (164 Views)

Adding custom code in reference editing and RefEdit command

164 Views, 4 Replies
06-06-2012 10:41 PM

Hi,

 

 

Could you please any body suggest, how i can add .net code on reference editing and refedit command.

 

Regards,

Raman

*Expert Elite*
Alfred.NESWADBA
Posts: 9,378
Registered: ‎06-29-2007
Message 2 of 5 (155 Views)

Re: Adding custom code in reference editing and RefEdit command

06-07-2012 01:01 AM in reply to: RamanSBV

Hi,

 

follow these steps:

  • get the BlockTable within your current drawing
  • go through the items in the BlockTable (type ObjectID for BlockTableRecord) and check if it's your XRef
  • if you found it you have access to it's database then to modify it.

 

- alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Moderator
Alexander.Rivilis
Posts: 1,446
Registered: ‎04-09-2008
Message 3 of 5 (153 Views)

Re: Adding custom code in reference editing and RefEdit command

06-07-2012 04:20 AM in reply to: RamanSBV

Do you want to replace the command REFEDIT with your code?

Then try this code: http://forums.autodesk.com/t5/NET/Override-default-commands/m-p/3402455#M28099


Пожалуйста не забывайте про Утвердить в качестве решения! Утвердить в качестве решения и Give Kudos!Баллы
Please remember to Accept Solution! Accept as Solution and Give Kudos!Kudos

Valued Contributor
RamanSBV
Posts: 88
Registered: ‎02-28-2012
Message 4 of 5 (139 Views)

Re: Adding custom code in reference editing and RefEdit command

06-07-2012 10:42 PM in reply to: Alexander.Rivilis

Hi,

 

Thanks for this link.....

 

Could you please guide me how i can get the "Select reference:" value in REFEDIT command.

 

Regards,

Raman

Valued Contributor
RamanSBV
Posts: 88
Registered: ‎02-28-2012
Message 5 of 5 (136 Views)

Re: Adding custom code in reference editing and RefEdit command

06-07-2012 11:18 PM in reply to: RamanSBV

 

Here,

 

How i can get the "Select reference:"  Xref file path value in REFEDIT command.

 

image.png

 

 

Please guide me.

 

Regards,

Raman

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!