AutoCAD Map 3D General Discussion

AutoCAD Map 3D General Discussion

Reply
Active Contributor
BigDumbWeirdo
Posts: 46
Registered: ‎04-15-2011
Message 1 of 1 (97 Views)

ACAD claims linetypes already loaded when they're not

97 Views, 0 Replies
08-27-2013 08:45 AM

Hey all. I'm running ACAD Map 3D 2009 and in writing some custom code, I've run into an issue. I have a custom command written in Autolisp that will convert an object to a certain layer and linetype. As a part of this command, I'm checking to see if the linetype is loaded in the linetype table, and if not, to load it.

The problem is that about 2/3 of the time, the command to load the linetype will return that the linetype is already loaded, even though it's not. This happens even when I try to load the linetype through the linetype dialog box, or through the command line; not just when I try to load it using LISP (which is why this isn't posted in the customization sub-forum).

 

I'm at wit's end trying to get this thing to work. I wouldn't mind using the workaround of inserting the extra "Y" into the call to the LTYPE function in my code, except that it only happens most of the time, instead of all of the time. Any help would be appreciated.

 

P.S. Yes, I've already tried purging that particular linetype beforehand. It doesn't seem to help.

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 or visit the Installation and Licensing Forum to get help installing your software.