I created a cartridge that fills automatically, including the mass of the part/assembly. I fill all of this in via the custom properties. The small problem is that I have to work on parts weighing a few grams or a few tons. So I would like to be able to drive all of this from the properties, but I'm a bit lost.
Here's what I was thinking:
The idea would be that my kilogram or gram option would drive the unit of mass that I could integrate into the cartridge. But it's far beyond my skills.
As my colleagues have already said; It's not possible but in 2 clicks you can do it. At the bottom right of the screen you have access to it. See attached link.
No, it's not possible, but it is possible to integrate an Excel conversion table , and to juggle between the lines to display the desired unit. On the other hand , it will have to be completed and updated each time.
I know that the thing is doable by going through a macro (which we used to do in my old company), but impossible to succeed in doing it again. Worse weather!
By macro it doesn't seem very complicated to me. All you have to do is get the value of the annotation with the mass, convert it and replace it with a visible note (playing with the layers to hide/show) the annotation containing the mapping to sw-mass.
I looked into the macros, and I made the one I needed (I joined him, if anyone would ever need it).
The last bit I can't do is to have the automatic mass unit in the drawing. Today, the text is "Mass: $PRPSHEET:"Mass" Kg". I would like to replace the Kg with a code that brings it directly.
If anyone knows the code to put in, I'm interested
I don't know VB but: - you probably have a variable who "knows" that you are in kg or g; - I guess the text "Mass: $PRPSHEET:"Mass" Kg" can be stored in a variable, which will be called by the note function. It (the text) can therefore be constructed by concatenation with case management (if then else is enough).
This is precisely the variable I'm looking for. The variable £PRPSHEET:"Mass" calls the mass, but not its unit, so I think there must be one like £PRPSHEET:"UnitsMasse", but not found.