.NET

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

How to allow readonly xref files in "Edit Reference In Place" mode.

208 Views, 5 Replies
06-06-2012 11:58 PM

Hi,

 

I am working on Xrefs in autocad, I come across one scenario as below,

 

AutoCAD application is not allowing me, when tring to  "Edit Reference In Place"  mode for readonly xref file. and displaying below dialog box.

 

Dialog for readonly xref to edit in place mode

 

 

Could you any body suggest on this issue.

 

 

Regards,

Raman

*Expert Elite*
Alfred.NESWADBA
Posts: 9,403
Registered: ‎06-29-2007
Message 2 of 6 (203 Views)

Re: How to allow readonly xref files in "Edit Reference In Place" mode

06-07-2012 12:58 AM in reply to: RamanSBV

Hi,

 

you can't edit a file that needs to be saved after edit.

Otherwise XRef-technology would not work, that's mechanism is "show an external (saved) DWG in my current drawing"

 

If you want to edit the external DWG you can first check it the drawing-file itself or the directory-rights are set to read-only.

Or what's the workflow you are running in your app to get this message?

 

- alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Valued Contributor
RamanSBV
Posts: 88
Registered: ‎02-28-2012
Message 3 of 6 (202 Views)

Re: How to allow readonly xref files in "Edit Reference In Place" mode

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

Hi,

 

Scenario here is,

 

In Main drawing file, If I am tring to edit(using Edit reference in place) the readonly Xref file, then autoCAD is displaying below shown dailog box.

 

My Concern here is, Once user click on Edit Reference, I want to turnoff readonly of xref file and allow user to edit the xref file.

 

 

Please advice on this.

 

Regards,

Raman

*Expert Elite*
Alfred.NESWADBA
Posts: 9,403
Registered: ‎06-29-2007
Message 4 of 6 (197 Views)

Re: How to allow readonly xref files in "Edit Reference In Place" mode

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

Hi,

 

you can create an eventhandler and check for command-started, if it's a command handling your XRef then handle your readonly-state and on command-ended event you can set back the file-state.

 

- alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Valued Contributor
RamanSBV
Posts: 88
Registered: ‎02-28-2012
Message 5 of 6 (195 Views)

Re: How to allow readonly xref files in "Edit Reference In Place" mode

06-07-2012 01:40 AM in reply to: Alfred.NESWADBA

Hi,

 

 

Could you please provide me the code sample on handling this event.

 

Regards,

Raman

*Expert Elite*
Alfred.NESWADBA
Posts: 9,403
Registered: ‎06-29-2007
Message 6 of 6 (190 Views)

Re: How to allow readonly xref files in "Edit Reference In Place" mode

06-07-2012 02:00 AM in reply to: RamanSBV

Hi,

 

>>>click<<<

 

- alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
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!