.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Adding custom code in reference editing and RefEdit command

4 REPLIES 4
Reply
Message 1 of 5
RamanSBV
479 Views, 4 Replies

Adding custom code in reference editing and RefEdit command

Hi,

 

 

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

 

Regards,

Raman

4 REPLIES 4
Message 2 of 5
Alfred.NESWADBA
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 ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 3 of 5

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

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"


Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Expert Elite Member

Message 4 of 5

Hi,

 

Thanks for this link.....

 

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

 

Regards,

Raman

Message 5 of 5
RamanSBV
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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost