Jump to content

Recommended Posts

Posted

Ok i'm trying to perform explode in a script. I select all dimensions in the current space, make a group out of them and then explode the group. This has worked perfectly for my needs until today. for some reason it is only exploding one object from that group. Any ideas???

Posted

Is your PICKADD system variable set to 1?

 

**EDIT**ACK!!! I just reread your post...WHY are you exploding DIMENSIONS?!

Posted

I have a client that wants all drawings only in modelspace, and for this conversion process when I chspace all of the objects in that viewport, the dimensions don't resize. I explode the dimensions ahead of time to avoid problems.

Posted

Try this instead, create a copy of your current Dimstyle, reverse your values for Scale for Dimension Features (Fit Tab) and Scale Factor (Under Measurement Scale in the Primary Units Tab), and then select all the dimensions and change their style over?

Posted

One of our guys has made it so the dimensions come through the viewport correctly, but when everything is in modelspace and we go to scale up the dimensions remain small. Most of our drawings have multiple viewports and some with differen't scales. My script provides a quick solution to the problem. We aren't doing this to our drawing set that we keep only the ones that are record drawings for the final submission to this client. I know it sounds bad but they have their head stuck up where the sun don't shine and we can't convince them to turn around and see the light.

Posted

You can explode a selection set from the command line, I assume it works the same way in a script. But not necessarily from lisp- usually only one object, not a set, can be exploded using (command "explode "all" "") But it does work if you set QAFLAGS to the right value. I don't recall it, but google may.

Posted

What i'm after tho is figuring out why this is happening. My script worked before, was unedited, and now doesn't work.

 

In the script here is the section

 

(setq ss (ssget '((0 . "dimension"))))

c -10000000,-10000000 20000000,20000000

(setq dimstot (sslength ss))

(if (> dimstot 0)

(progn

(command "group" "c" "dims" "" "p" "")

(command "zoom" "e")

(command "explode" "g" "dims")

(command "group" "e" "dims"))

)

Posted
One of our guys has made it so the dimensions come through the viewport correctly, but when everything is in modelspace and we go to scale up the dimensions remain small. Most of our drawings have multiple viewports and some with differen't scales. My script provides a quick solution to the problem. We aren't doing this to our drawing set that we keep only the ones that are record drawings for the final submission to this client. I know it sounds bad but they have their head stuck up where the sun don't shine and we can't convince them to turn around and see the light.

 

 

:o This is just personal opinion, but I NEVER dimension ANYTHING shown through a viewport in Paper space (which is what I'm interpreting that you are doing). If you dimension everything in model space to BEGIN with you avoid this problem, you can create several dimstyles to reflect the different scales you may need for any particular viewport!:huh:

Posted

Sorry wrong. Every dimension is in modelspace except for ones through continuation lined viewports. We have numerous dimension styles for different scaled viewports.

Posted
Sorry wrong. Every dimension is in modelspace except for ones through continuation lined viewports. We have numerous dimension styles for different scaled viewports.

Ah well then, I stand corrected... apologies....glad I'm wrong :D

Posted

If you just want to explode selected dimensions, I don't follow why you're creating a group.

 

Following should explode dimensions within the box described by coordinates. But will not select items outside of the current display:

 

(setvar "QAFLAGS" 1); needed to explode a set
(setq ss (ssget "c" '(-10000000 -1000000) '(20000000 20000000)  '((0 . "DIMENSION"))))
(command "explode" ss "")

Posted

CARL!!!!!!!!!!!!!

 

Your section fixed my problem. Not the lines, but the variable. For some reason I could only explode one selection set object, but when I changed the QAFlags to 1 it did everything. I have changed the lines to represent exploding a selection set. The only reason I didn't before is because I didn't know you Could. Here is the new section.

 

(setvar "qaflags" 1)

(setq ss (ssget '((0 . "dimension")))) all

(if (> (sslength ss) 0)

(command "._explode" ss "")

)

 

 

THANKS ALOT!!!! I mean it. This was killing me yesterday, and I couldn't figure it out.

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