Jump to content

Recommended Posts

Posted

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:

image1.png

 

When i Purge => PurgeAll my template, there all deleted as supposed.

image2.png

 

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:

image3.jpg

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)

image4.png

 

The result is, as it should be:

image5.jpg

 

Any suggestions on this one?

*cough* Lee? *cough*

StealV1-8.lsp

Posted

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:

"~*`@*"

Posted
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. :-(

Posted

Oops: The '@' character should of course be '$'.:roll:

Posted

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...

Posted

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.

Posted
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. :-(

Posted

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

Posted

I prefer this way because i use it as a function in a larger restore / reload template function

Posted

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)

Posted

*Yay* for Lee Mac :-)

 

That did the trick.

Works perfect now. :-)

  • 4 years later...
Posted

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.

Posted
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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...