CadFrank 发表于 2022-7-5 18:30:57

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!

ReMark 发表于 2022-7-5 18:43:26

Once the new drawing is saved as a "dwg" wouldn't that information just go away?

CadFrank 发表于 2022-7-5 18:52:19

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.

rkmcswain 发表于 2022-7-5 18:59:47

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.

ROBP 发表于 2022-7-5 19:03:54

 
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

ReMark 发表于 2022-7-5 19:10:23

And if every template uses the same dimstyle then what?

ROBP 发表于 2022-7-5 19:19:41

 
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?

CadFrank 发表于 2022-7-5 19:27:39

Indeed! different template should me different layers or layout. Well that should give me a few idea's thank alot!!

ROBP 发表于 2022-7-5 19:31:36

 
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]
查看完整版本: Template (dwt) system variable