.NET

.NET

Reply
Valued Contributor
88 Posts
0 Kudos
Registered: ‎02-28-2012
Post 1 of 5

Adding custom code in reference editing and RefEdit command

169 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*
9,790 Posts
1,210 Kudos
Registered: ‎06-29-2007
Post 2 of 5

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
1,464 Posts
277 Kudos
Registered: ‎04-09-2008
Post 3 of 5

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
88 Posts
0 Kudos
Registered: ‎02-28-2012
Post 4 of 5

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
88 Posts
0 Kudos
Registered: ‎02-28-2012
Post 5 of 5

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