CadFrank Posted October 14, 2015 Posted October 14, 2015 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! Quote
ReMark Posted October 14, 2015 Posted October 14, 2015 Once the new drawing is saved as a "dwg" wouldn't that information just go away? Quote
CadFrank Posted October 14, 2015 Author Posted October 14, 2015 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. Quote
rkmcswain Posted October 14, 2015 Posted October 14, 2015 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. Quote
ROBP Posted October 14, 2015 Posted October 14, 2015 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. 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 Quote
ReMark Posted October 14, 2015 Posted October 14, 2015 And if every template uses the same dimstyle then what? Quote
ROBP Posted October 14, 2015 Posted October 14, 2015 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? Quote
CadFrank Posted October 14, 2015 Author Posted October 14, 2015 Indeed! different template should me different layers or layout. Well that should give me a few idea's thank alot!! Quote
ROBP Posted October 14, 2015 Posted October 14, 2015 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. 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) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.