Template (dwt) system variable
Hi,would anyone know how to know which template was started in a drawing?
I'm trying to make some lisp routine start when it's that specific template that starts.
Thanks! Once the new drawing is saved as a "dwg" wouldn't that information just go away? I'm not sure that's what I'm trying to figure out!
If i'd know at startup the system variable for the template maybe i could fallow it and see it the drawing keeps the information. This was recently discussed, I think in the Autodesk forums.
IIRC, there isn't any way to tell because that data is not stored in the drawing.
Having said that, you could embed some non-graphical data in a template drawing (for example, xdata tied to layer 0) that you could later query.
Wouldn't help now, but it could in the future.
One clue would be to check the dimstyle and find the matching template in the template file you have an that if the dimstyle was not altered importing from other drawings since dimstyle does follow when stuff is inserted.
HTH And if every template uses the same dimstyle then what?
next step would be to check the loaded linetypes and frames along with sheet sets
if they are all the same what is the point of having them under a different name in that case? Indeed! different template should me different layers or layout. Well that should give me a few idea's thank alot!!
Indeed one with color compapy chop with imp and one metric + no logo for others
Also one b/w company chop both metric and imperial+ no logo for others
Different flavors can be added also (linetypes and layers)
页:
[1]