Aftertouch Posted January 31, 2018 Posted January 31, 2018 Hello all, I am using Lee Mac's STEAL program on regular bases. But i noticed a flaw in the program... When i open my template i have these styles: When i Purge => PurgeAll my template, there all deleted as supposed. Now the problem: When i use the 'Quick method to import all DimStyles from template: (Steal "W:\\Template.dwt" '(("Dimension Styles"("*")))) I get the following result: As you can see, all styles (exept current) get imported on a buggy way. The 'ordinate' styles are missing, and the regular style is added with a $6 tag? BUT when i use the regular Steal command and import one by one (or all at once) The result is, as it should be: Any suggestions on this one? *cough* Lee? *cough* StealV1-8.lsp Quote
Roy_043 Posted January 31, 2018 Posted January 31, 2018 Apart from having a specific name ("*@*") these child dimension styles are the same as any other style which explains the behavior you see. The easiest solution is probably (untested): Replace: "*" With: "~*`@*" Quote
Aftertouch Posted January 31, 2018 Author Posted January 31, 2018 Apart from having a specific name ("*@*") these child dimension styles are the same as any other style which explains the behavior you see. The easiest solution is probably (untested): Replace: "*" With: "~*`@*" Thanks for the 'simple' suggestion, too bad it didnt do the trick. :-( Quote
Roy_043 Posted January 31, 2018 Posted January 31, 2018 Oops: The '@' character should of course be '$'. Quote
Aftertouch Posted January 31, 2018 Author Posted January 31, 2018 Aah, i see where this is going. But it now doesnt load all child styles, wich it should.... But the weird part is... Why does... (Steal "W:\\Template.dwt" '(("Dimension Styles"("*")))) ...fail And when i use the menu, and select them all, it loads as it should... Quote
tombu Posted January 31, 2018 Posted January 31, 2018 I'm a big fan and heavy user of Lee Mac's Steal routine, but Dimension Styles are complicated since most of them are dependent modifications of another Dimension Style. I never modify or use the Standard Dimension Style as all others are Standard + Modifications. Using Design Center you need to add parent styles first then add child styles for say Angular dimensions afterwards. Doubt if there's any way Lee's routine could tell what order to load them. Of course it's been some time since I've done this since all the Dimension Styles I use are in all my template files. For pretty much everything else I use Lee's Steal From Drawing. Quote
Aftertouch Posted January 31, 2018 Author Posted January 31, 2018 I'm a big fan and heavy user of Lee Mac's Steal routine, but Dimension Styles are complicated since most of them are dependent modifications of another Dimension Style. I never modify or use the Standard Dimension Style as all others are Standard + Modifications. Using Design Center you need to add parent styles first then add child styles for say Angular dimensions afterwards. Doubt if there's any way Lee's routine could tell what order to load them. Of course it's been some time since I've done this since all the Dimension Styles I use are in all my template files. For pretty much everything else I use Lee's Steal From Drawing. I work exactly the same way. But as mentioned. - Use STEAL manualy works fine. - Use the quickroute with the functions seems to fail. :-( Quote
halam Posted January 31, 2018 Posted January 31, 2018 I'm a user of steal also. We have different projects with all different styles (reality bites). That is why I use the manual way to pick the right template for that time i'm working on the specific project. You could use a 'import block dwg' routine it is about importing company dim style in a hard coded matter. Why do you prefer steal for the non-manual way? Groet hans Quote
Aftertouch Posted January 31, 2018 Author Posted January 31, 2018 I prefer this way because i use it as a function in a larger restore / reload template function Quote
Lee Mac Posted February 1, 2018 Posted February 1, 2018 After a cursory review of the issue you have reported and without performing any testing myself, I believe the difference in the behaviour that you are witnessing between using the application with the program dialog and evaluating the function directly with a wildcard argument is the order in which the objects are imported into the active drawing. To test this theory, please try changing line 683 from: tmp to: (reverse tmp) Quote
Aftertouch Posted February 1, 2018 Author Posted February 1, 2018 *Yay* for Lee Mac :-) That did the trick. Works perfect now. :-) Quote
theGreg Posted July 22, 2022 Posted July 22, 2022 Just need some information: How is this different from the AutoCAD built in command, ADCENTER? I have imported layers, layouts etc before with it. Please advise. Quote
tombu Posted July 22, 2022 Posted July 22, 2022 4 hours ago, theGreg said: Just need some information: How is this different from the AutoCAD built in command, ADCENTER? I have imported layers, layouts etc… before with it. Please advise. DC can be really handy don't thing of it as an either or situation. I do different sized drawings for different purposes. When I'm going to use 11"×17" paper I'd use this macro from my Layouts drop-down to import a plan sheet layout with viewport and Page Setups for plotting to both paper and PDF. With DC you would need to find that particular template and layout just to get the layout and you would still need to add the Page Setups which DC cannot do. ^C^C^P(Steal (strcat (vl-filename-directory (getenv "QnewTemplate")) (chr 92) "AutoCAD Template" (chr 92) "Templates.dwt") (list (list "Page Setups" (list "11×17" "11×17 PDF"))(list "Layouts" (list "11×17")))) .regen I've got several including Cover sheets for every paper size in the drop-down to instantly add whatever I need. It simply does every thing I need instantly with a single click and time is money. 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.