So here's the deal.

We have parts that have a point which we need for dimensioning purposes.

To clarify, it's the 'corner' point inside an 45° elbow where the two axis of each leg meet.

These parts are used in Routing.

We leave the sketch viewable so that we can see and select that point in the ASM.

 

Now when we make a drawing it automatically set all the sketches , including the points, in hidden mode.

There for no matter what we do the only one way to see those points is to put each and every necessary point or sketch in SHOW.

Which can be a very big hassle if there's lots of those about.

 

So here's the question. Does anyone know of a macro or a way or can make a macro that will put any and all sketches of parts which are used in a sub-asm that are part of a TOP ASM  of which a DRW is being made in SHOW mode instead of being hidden?


Categories: API∕Macros

Comments
Last comment By: Peter De Vlieger   Fri, 21 Apr 2017 14:08:24 GMT
Re: viewing sketch buried in an ASM in DRW

I remember seeing a macro to show or hide all sketches in the drawings or views, could not recall where. I'll keep looking and post back if found.

By: Deepak Gupta  Thu, 20 Apr 2017 17:52:51 GMT
Re: viewing sketch buried in an ASM in DRW

You can show or hide individual sketches in the drawing per view very easily.  Maybe this is all you need.

 

Here's my part:

 

The sketches are now HIDDEN at the part level:

 

Now, at the drawing level, just expand the tree for the view that you want to show the sketch in and RMB on it and select "show" or "hide" as required.

By: Dan Pihlaja  Thu, 20 Apr 2017 18:05:38 GMT
Re: viewing sketch buried in an ASM in DRW

Dan,

 

Sure but the point is that one has to do that one sketch at a time.

 

One can also use the filter mode in the feature manager to filter all the wanted sketches but one can't multiple select the result to activate them all in one go. So if one has to hunt down each and every sketch one by one .... it doesn't help proceedings considering that they are buried way deeper then in your example. As said, it's a part that is used several times in multiple ASM's in an ASM in an ASM.

By: Peter De Vlieger  Thu, 20 Apr 2017 19:51:29 GMT
Re: viewing sketch buried in an ASM in DRW

Cheers Deepak much appreciated.

 

I found several macro's to help hide/show sketches (2d and 3dsketches) but they are all for PRT's and ASM's. I even have some made by you.

 

Alas none seem to do what's needed in DRW's. And certainly not digging deep enough.

 

Looking forward if and when you do find something.

By: Peter De Vlieger  Thu, 20 Apr 2017 19:59:48 GMT
Re: viewing sketch buried in an ASM in DRW

Here is an idea: As the last feature of each part, create a 3D sketch and Convert all those corner points from the previous features. I suggest 3D because this one sketch can have points from sketches on different planes. You can keep this sketch visible. Or, if you hide it, then only one sketch (in a known location) needs to manually be made visible in the drawing.

And, if you have a standard name for this sketch, then creating a macro to make it visible in drawings will be simpler.

By: Bill Toft  Thu, 20 Apr 2017 20:51:34 GMT
Re: viewing sketch buried in an ASM in DRW

Now I've got access to solidworks again and have been abel to experiment I've noticed that if the sketch in questeion of the part(s) in question is in viewable mode then this will translate it being vieawable in all ASM's that it's used in no matter how deep in is buried in sub-ASM's as along as the 'vieiw sketches' mode is on. When making a new DRW and again activating that mode it will bring up the needed sketches.

 

The only annoying thing is that in previous made drawings it still won't show the sketches no matter what I try unless I change the mode of the sketch of the part in each and every sub-ASM. At least I've found a way to avoid the problem in the future.

 

Thank you those that pitched in.

By: Peter De Vlieger  Fri, 21 Apr 2017 11:23:21 GMT
Re: viewing sketch buried in an ASM in DRW

Peter De Vlieger wrote:

The only annoying thing is that in previous made drawings it still won't show the sketches no matter what I try unless I change the mode of the sketch of the part in each and every sub-ASM. At least I've found a way to avoid the problem in the future.

For those drawings, right click on the view and select reset sketch visibility. This will set to behave like they're in model i.e. if they are shown in model, then they would show up in drawing also (provided show sketches is selected under hide/show)

 

By: Deepak Gupta  Fri, 21 Apr 2017 11:55:16 GMT
Re: viewing sketch buried in an ASM in DRW

I almost started to think that you, Deepak, were wrong because I did as you said and checked it all and it still didn't show the sketches.

However knowing that The Deepak Gupta surely couldn't be wrong I rechecked everything ... alas still no joy.

 

Then I opened the actual ASM to check that it was actually showing the sketches and it was. With sorrow I was about to post a message about how Deepak struck out but then I took one more look at the DRW and because of opening the ASM and having done as Deepak had instructed beforehand.... all was as he had predicted.

 

The mighty Deepak strikes again.

 

 

As always, thank you kindly for sharing your wealth of knowledge.

By: Peter De Vlieger  Fri, 21 Apr 2017 14:08:24 GMT
You are not authorized to view this page No results found! Suggestions: Check spelling, try a different search, or browse topics below.