AutoCAD Map 3D General Discussion

AutoCAD Map 3D General Discussion

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

ACAD claims linetypes already loaded when they're not

99 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.

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!