LispFunction Runs Twice

LispFunction Runs Twice

Christopher.Fugitt
Enthusiast Enthusiast
472 Views
3 Replies
Message 1 of 4

LispFunction Runs Twice

Christopher.Fugitt
Enthusiast
Enthusiast

I have a LispFunction that does some work to get data from a drawing and saves it to a temporary file. When the LispFunction is run the first time it runs twice, every other time after it runs twice. Is this a known issue or is there maybe a setting that is causing this. Adding Lisp before the LispFunction doesn't appear to affect it running twice. 

This is Civil 3D 2020.6 Update.

 

LispFunction.png

Thanks

0 Likes
Accepted solutions (1)
473 Views
3 Replies
Replies (3)
Message 2 of 4

Christopher.Fugitt
Enthusiast
Enthusiast
Accepted solution

It was a defect in my code. I was writing to the XML file in the creation of the object and I suspect .NET is running the initialization of the class in order to create the XML file which caused the issue.

0 Likes
Message 3 of 4

JamesMaeding
Advisor
Advisor

@Christopher.Fugitt 

Write a bunch more of these where you solve your own post! Get that 6 rating up LOL.

I remember once I was an 11 for one day. Then they recognized my name....


internal protected virtual unsafe Human() : mostlyHarmless
I'm just here for the Shelties

0 Likes
Message 4 of 4

Civil3DReminders
Collaborator
Collaborator

Well, this account has a bit more forum cred. I'm not quite sure why I have so many Autodesk accounts.

0 Likes