How to automate sketches in inventor

Hello

I've already managed to create a sketch that will get me the mass and the material in the properties but now I'd like to create a form that asks me a quantity question and that every time I put a sketch and it will allow me to fill in this sketch directly with the quantity I chose.

Like the photo below, but to fill in the quantity, you would have to ask a question and that, depending on what I put in, it automatically fills in the sketch.

Is it possible or not at all?

1 Like

Hello, add:

Dim MaQte As Integer
MaQte = Val(InputBox("Quelle quantité?"))

 

The problem is that I did it like that for the sketch.

What's your code right now?

The macro needs to create a custom property that will be called in the note.

Hello

You don't have to create a code. You can define a new sketch symbol in the Annotate/Define New Symbol tab.

For the text to be filled in must be of type Enter required.

Each time you insert the sketch symbol, a window like the one attached will appear:

 


capture.jpg
2 Likes