Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
*Expert Elite*
scot-65
Posts: 2,124
Registered: ‎12-11-2003
Message 11 of 17 (393 Views)

Re: Cannot load custom Acad2014.lsp

05-14-2013 03:52 PM in reply to: dragutin.zivkovic
As long as you do not have any top level "(command..." in your library, you do not need to use S::smileyfrustrated:TARTUP. My guess is the vendor wants to be sure his commands (keystroke declarations) overwrites any previous loaded keystrokes of the same name (which includes the PGP file) when the editor is first launched as S::smileyfrustrated:TARTUP is the last item to execute before the user gains control.

I personally suggest the MNL route.
Scot-65
Dyslexia is a permanent physical disability that cannot be seen.
*Expert Elite*
3wood
Posts: 968
Registered: ‎03-25-2009
Message 12 of 17 (390 Views)

Re: Cannot load custom Acad2014.lsp & Acad2014doc.lsp from custom directory

05-14-2013 05:07 PM in reply to: BlackBox_

It seemed my acad.lsp was not allowed to be used in AutoCAD 2014. I had to rename it to acadDOC.lsp and added the folder contains this file into the trusted folder separatly (although its parent folder had been added) to make it run properly.

It is quite annoying because acad.lsp has been used for so long, and even there are malicious routines exist, the ball should be passed to customers. I suggest Autodesk develop better techniques to prevent malicious routines instead of ask users to change work flow, verify external routines, and set up protection all by themself. 

Member
dragutin.zivkovic
Posts: 5
Registered: ‎05-14-2013
Message 13 of 17 (380 Views)

Re: Cannot load custom Acad2014.lsp

05-15-2013 04:14 AM in reply to: scot-65

I wouldn't be using the the 3rd party program if it wasn't for this hole chart program they have. It allows you to select all the holes on a panle, then marks them with a letter & creates a chart.

 

A lot of good advice, I'll get it to work one way or another. Thanks everyone for the help !!!

 

Dave,

Distinguished Mentor
BlackBox_
Posts: 733
Registered: ‎02-25-2013
Message 14 of 17 (373 Views)

Re: Cannot load custom Acad2014.lsp & Acad2014doc.lsp from custom directory

05-15-2013 07:41 AM in reply to: 3wood

scot-65 wrote:
S::smileyfrustrated:TARTUP is the last item to execute before the user gains control.

Incorrect... Scripts loaded via /b switch are the last to execute... See post #9 (this thread) for reference.

 


3wood wrote:

It seemed my acad.lsp was not allowed to be used in AutoCAD 2014. I had to rename it to acadDOC.lsp and added the folder contains this file into the trusted folder separatly (although its parent folder had been added) to make it run properly.

It is quite annoying because acad.lsp has been used for so long, and even there are malicious routines exist, the ball should be passed to customers. I suggest Autodesk develop better techniques to prevent malicious routines instead of ask users to change work flow, verify external routines, and set up protection all by themself. 


Are you sure you're not misunderstanding the purpose of Acad.lsp vs. AcadDoc.lsp?

If you're expecting Acad.lsp to load into each Drawing, rather than the default behavior of loading only once per session, then you might consider the AcadLspAsDoc System Variable.

 

Cheers



"Potential has a shelf life." - Margaret Atwood


Autodesk Exchange Apps ~ Autoloader ~ AutoCAD Security

*Expert Elite*
scot-65
Posts: 2,124
Registered: ‎12-11-2003
Message 15 of 17 (363 Views)

Re: Cannot load custom Acad2014.lsp & Acad2014doc.lsp from custom directory

05-15-2013 03:39 PM in reply to: BlackBox_
/b is not present when editor is launched via double-click while in a file manager for a normal install of AutoCAD (the preferred method among most employees here).
Scot-65
Dyslexia is a permanent physical disability that cannot be seen.
Distinguished Mentor
BlackBox_
Posts: 733
Registered: ‎02-25-2013
Message 16 of 17 (342 Views)

Re: Cannot load custom Acad2014.lsp & Acad2014doc.lsp from custom directory

05-16-2013 06:05 AM in reply to: scot-65

scot-65 wrote:
/b is not present when editor is launched via double-click while in a file manager for a normal install of AutoCAD (the preferred method among most employees here).

Your prefered method also side steps the /p (Profile) switch, etc. by not first launching AutoCAD via the application icon, and then opening the required drawing(s).

 

That is not something that is acceptable for an environment (such as mine) where one has multiple internal, and client-specific Profile's, in addition to versions of Civil 3D, Map 3D, AMEP from 2011-2014, and Land Desktop Companion 2009 installed on each workstation.

 

Obviously, if that sort of situation is not applicable for you, or others, then double clicking the DWG may work perfectly fine... However, I'd venture a guess that that is not the majority, nor prefered by Autodesk as a generalization, thus, I stand by my statement.

 

Cheers



"Potential has a shelf life." - Margaret Atwood


Autodesk Exchange Apps ~ Autoloader ~ AutoCAD Security

ADN Support Specialist
fenton.webb
Posts: 352
Registered: ‎07-24-2007
Message 17 of 17 (258 Views)

Re: Cannot load custom Acad2014.lsp & Acad2014doc.lsp from custom directory

08-01-2013 02:25 PM in reply to: BlackBox_

As you mention SECURELOAD in this thread, I'm posting this white paper for you guys to checkout http://adndevblog.typepad.com/autocad/2013/07/all-you-need-to-know-about-autocad-secureload-au.html





Fenton Webb

Developer Technical Services

Autodesk Developer Network


You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community