Insert a corner stamp using iLogic

Insert a corner stamp using iLogic

DeptaM
Enthusiast Enthusiast
588 Views
3 Replies
Message 1 of 4

Insert a corner stamp using iLogic

DeptaM
Enthusiast
Enthusiast

Good day everyone,
We have several types of corner stamps. I have an idea that when I open a new drawing from a template, a dialog will open and in it I will be able to choose the type of corner stamp that I will need.
Is this possible?

Thank you
Martin

0 Likes
Accepted solutions (2)
589 Views
3 Replies
Replies (3)
Message 2 of 4

theo.bot
Collaborator
Collaborator
Accepted solution

I think you mean with a corner stamp, the title block or a sketched symbol. with both you can do this. It starts with creating a multi value parameter with the names of your title block or Symbols. You can use this parameter to show on your form. You can create rules, to add and remove symbols or title blocks.

for Title blocks there is a standard snippet: 

ActiveSheet.TitleBlock = "My Title Block"

for symblols you can use:

 

Dim oSketchedSymbolDef As SketchedSymbolDefinition
oSketchedSymbolDef = ThisDrawing.Document.SketchedSymbolDefinitions.Item("notes")

Dim oPoint As Point2d
oPoint = ThisApplication.TransientGeometry.CreatePoint2d(10,10)

Dim oSketchedSymbol As SketchedSymbol
oSketchedSymbol = ActiveSheet.Sheet.SketchedSymbols.Add(oSketchedSymbolDef, oPoint)

 

0 Likes
Message 3 of 4

TomaszDąbrowski
Enthusiast
Enthusiast
Accepted solution

I also assume thet by corner stamp you mean Title Block.

You can try with attached  file (Inventor 2019 version) and put it inside your templates folder.

Please edit (in parameters) a multivalue parameter "TitleBlock" (enter your corner stamps names).

Then copy all your corner stamps inside this file and save.

When you create a new file using this template, it will show a form with template to select.

0 Likes
Message 4 of 4

DeptaM
Enthusiast
Enthusiast

Hi, thank you all for your help. It works perfectly.

Martin

0 Likes