Macro solidworks for dimensioning bodies in a drawing

Hello
I need aside, in a solid body drawing quite often and I would like to automate it with a macro. I would like the macro to dimension the outer lines of my volume as well as the different angles in order to display all this in a shot. Knowing that in my part where there are volume bodies there are no sketches, it's an import of a part. Do you have any idea how to do this?
I tried to use chatGPT to do so but without success so far.

Sincerely, $Merci of the helping hand

No idea but...

:rofl::rofl: :rofl: :rofl: :joy:
Thank you, you just made me my day

Good to know, that was a useful answer

Sorry @gaenne_1 , I thought it was a joke on your part... obviously not, you were very serious :roll_eyes:.

To answer your question:

Everything is said in this sentence.

I don't see how this is possible. For this to happen, you would need dimensions in a sketch to be able to fetch the objects from the model.
By putting yourself in your user point of view, since you don't have these internal dimensions, you are therefore forced to select the " smart dimensioning" tool and to go and set the dimension yourself by selecting the lines.
No software, no matter how smart, is capable of doing that. He is unable to know that your line on the far right must be linked by a dimension with your line on the far left.

And I want to say that it's all the better... You would then have no added value compared to a machine.

On the other hand, I'm very curious. Why do the drawing of a part import?

Hello

The only possibility you have is to make a macro that uses the featurworks function to recognize the functions of the body and then extract the dimensions.

My part in which I develop is already very heavy so the drawing that will result from it is too, to go that I import my part and I only keep the bodies I need, it usually represents 10% of the rest of the part.
If I use the original part, the bodies were created thanks to a library it also seems complex to me to look for dimensions in all these sketches

I don't know the featurworks function, what does it do?

It is a function that rebuilds the creation tree of a "dead" body in order to be able to modify it. You right-click on imported in the Authoring Tree and there will be featureWorks

1 Like

Hello

When you say:

Is it a complex part or is it an assembly?

Kind regards

1 Like

To use a little from time to time, it seems to me that function recognition does not create dimensions. She makes dimensionless sketches... So, it seems to me compromised to extract the dimensions, doesn't it? Unless I missed an option?

@coin37coin , in the options you can choose what you want to constrain.
image
image

1 Like

So I missed the option :sweat_smile:

Hello

Maybe there's this: Visualization Cube - 2021 - SOLIDWORKS Help

But it won't be more than 3 sides if it works the way you want it to.