To be honest, I'm not sure what fixed it. I changed that and it started drawing right again, but I don't know why. Incidentally, I'm using Metric specs in an imperial project drawing in a model that's in millimeters.
No clue why it's working. I do have the UNITS variable set to mm. But I don't know if that's it or not.
For a while it didn't work today, but now it does...
FINALLY got this figured out.
You can retrieve the current drawing insertion settings via INSUNITS.
You'll have to create a method to determine which unit type you want to use, but the method you need to use is from the ContentManager.
When you use the GetSymbol() method from the ContentManager, one of the overrides includes passing in a scale from Autodesk.ProcessPower.PartsRepository.Units enum. When you specify the scale, the symbol gets created scaled to match.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register