Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Contributor
Pluc.m
Posts: 21
Registered: ‎08-31-2012
Message 1 of 9 (556 Views)

CUI Command Macro - Open in Read-Only - AutoCAD LT

556 Views, 8 Replies
09-18-2012 01:08 PM

Is it possible to write a Macro in the CUI that opens a drawing in Read-Only mode? Limitation : AutoCAD LT.

 

Thanks!

Distinguished Mentor
Moshe-A
Posts: 827
Registered: ‎09-14-2003
Message 2 of 9 (555 Views)

Re: CUI Command Macro - Open in Read-Only - AutoCAD LT

09-18-2012 01:12 PM in reply to: Pluc.m

ofcourse you can

 

the CUI/CUIX file is totally independet

 

moshe

Contributor
Pluc.m
Posts: 21
Registered: ‎08-31-2012
Message 3 of 9 (554 Views)

Re: CUI Command Macro - Open in Read-Only - AutoCAD LT

09-18-2012 01:14 PM in reply to: Moshe-A

Ok I should have clarified that I actually needed help to do so :smileyvery-happy:

 

I can write .NET Interops, use the .NET API, and theres a guy that handles everything about LISP. But nobody here knows how to deal with macro accordingly.

 

Any direction, link, tutorial, sample is greatly apreciated! :smileyhappy:

Distinguished Mentor
Moshe-A
Posts: 827
Registered: ‎09-14-2003
Message 4 of 9 (547 Views)

Re: CUI Command Macro - Open in Read-Only - AutoCAD LT

09-18-2012 02:23 PM in reply to: Pluc.m

 

well that's depand on what you want to do with CUI/CUIX macro?

do you want to programaticlly write to CUI/CUIX files?

with that i can not help you.

 

the CUI/CUIX manager is design to create macros for users who (even) have no coding skills.

 

here is the only good reference manual i use:

 

from the AutoCAD pulldown menu (top menu) go to Help

 

and select

 

Additional Sources\Developer Help

Customization Guide\User Interface Customizaion

but if you have R2011 and up? it will take to help on the net

 

Cheers

Moshe

 

*Expert Elite*
dgorsman
Posts: 5,698
Registered: ‎10-12-2006
Message 5 of 9 (539 Views)

Re: CUI Command Macro - Open in Read-Only - AutoCAD LT

09-18-2012 03:31 PM in reply to: Moshe-A

I think the OP is looking to create a macro, inside a CUIx file, that opens a selected drawing as read-only.  That seems reasonable...

 

AFAIK there is no such beast.  The only way I can do that is programmatically, which you can't do in LT.  If the application is not that important, try seeing if you can launch TrueView; if so, you can supply the file name as a command-line argument to the EXE.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
Adopt. Adapt. Overcome. Or be overcome.
A good question will be halfway to a good answer.


Contributor
Pluc.m
Posts: 21
Registered: ‎08-31-2012
Message 6 of 9 (526 Views)

Re: CUI Command Macro - Open in Read-Only - AutoCAD LT

09-19-2012 04:10 AM in reply to: dgorsman

We really need AutoCAD LT. We specifically bought over 10 licenses of LT for specific features that would speed up mesurements and other stuff (apparently, i don't personally know why they switched).

 

Thanks for the directions on the documentation. I will be looking at that.

Valued Contributor
Rick-K
Posts: 88
Registered: ‎07-25-2012
Message 7 of 9 (510 Views)

Re: CUI Command Macro - Open in Read-Only - AutoCAD LT

09-19-2012 08:01 AM in reply to: Pluc.m

See this post to see if it might help.

 

Maybe Owen's program will work for you.

 

BTW I use quickpik for autocad & dont like running it without.

 

AutoCAD Read-Only

 

He says it works with LT.

 

Rick

Contributor
Pluc.m
Posts: 21
Registered: ‎08-31-2012
Message 8 of 9 (506 Views)

Re: CUI Command Macro - Open in Read-Only - AutoCAD LT

09-19-2012 08:11 AM in reply to: Rick-K

I kinda started that topic, but thanks anyway! :smileyhappy:

 

I know about his application but this is not something the company will invest money on. They would rather invest in Autodesk Vault Workground then this (which is actually considered as we speak. Live demo being schedualed, quote already obtained).

 

Not to mention that I'm kinda confused to how this application is actually legal on LT...

 

Thanks everyone for the help!

Valued Contributor
m_rogoff
Posts: 59
Registered: ‎04-02-2014
Message 9 of 9 (67 Views)

Re: CUI Command Macro - Open in Read-Only - AutoCAD LT

07-25-2014 12:14 AM in reply to: Pluc.m

when the OPEN menu is displayed, select the DOWN ARROW next to "Open" button, select "Open Read Only"

see attached picture

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.