Text Border Help

Text Border Help

robertast
Collaborator Collaborator
6,561 Views
49 Replies
Message 1 of 50

Text Border Help

robertast
Collaborator
Collaborator

@chandra.shekar.g, @johnsonshiue , @DannyHubbard , @CGBenner 

 

Dear professionals, who have access to the "Record Macro" button. Write and share "Text Border" macros.
After all, it did not come from heaven. Much needed, please help 🙏

 

Text Border.jpg

You really have that opportunity or you know someone who can do it. Thank you in advance 🍾

6,562 Views
49 Replies
Replies (49)
Message 2 of 50

CGBenner
Community Manager
Community Manager

@robertast 

 

I'm not sure I understand what you are asking.  Do you want to know how to create a macro to do this?  Or are you asking for this to be added to Inventor?

Did you find a post helpful? Then feel free to give likes to these posts!
Did your question get successfully answered? Then just click on the 'Accept solution' button.  Thanks and Enjoy!


Chris Benner
Community Manager

0 Likes
Message 3 of 50

robertast
Collaborator
Collaborator

@CGBenner 

Yes I want to know how to do it. And I believe you can help, because the "Record macro" button is for your internal use. Make this service very please

0 Likes
Message 4 of 50

CGBenner
Community Manager
Community Manager

@bradeneuropeArthur 

 

You're good with VBA, do you think you can help this user with writing a macro?

Did you find a post helpful? Then feel free to give likes to these posts!
Did your question get successfully answered? Then just click on the 'Accept solution' button.  Thanks and Enjoy!


Chris Benner
Community Manager

0 Likes
Message 5 of 50

robertast
Collaborator
Collaborator

@CGBenner 

I believe that only an Autodesk employee can help. Only he has access to those "magical" button. Arthur, I think, has no such opportunity. 😪

0 Likes
Message 6 of 50

robertast
Collaborator
Collaborator

@CGBenner 

I believe that only an Autodesk employee can help. Only he has access to those "magical" button. Arthur, I think, has no such opportunity. 😪

There is no description in official documents on how to do this. But for two years now it’s been at Inventor. So if not with iLogic, then with VBA it can definitely be done

0 Likes
Message 7 of 50

bradeneuropeArthur
Mentor
Mentor

I can write macros with VBA.

Also I can create add ins with vb.net.

 

But I don't exactly know what @robertast needs. Is this equal to what Ms excel has RECORD MACRO.

 

That will be a bridge to far for me?

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 8 of 50

CGBenner
Community Manager
Community Manager

@robertast I guess I am still confused on exactly what you want.  I can add text in Inventor with and without a text box, right from the Text tool.

CGBenner_0-1597862015896.png

CGBenner_1-1597862048265.png

 

 

Did you find a post helpful? Then feel free to give likes to these posts!
Did your question get successfully answered? Then just click on the 'Accept solution' button.  Thanks and Enjoy!


Chris Benner
Community Manager

0 Likes
Message 9 of 50

robertast
Collaborator
Collaborator

Well, if it's not clear from the screen, I'll add a video. I want to get it all just with iLogic or VBA

0 Likes
Message 10 of 50

robertast
Collaborator
Collaborator

@bradeneuropeArthur 

This magic Save Macro button (like exsel) also has an autodesk for internal use. 😉

0 Likes
Message 11 of 50

imajar
Advisor
Advisor
Accepted solution

I'm afraid I still don't know what you are asking for here.  Are you asking someone to write an ilogic form to place text in a drawing?  Or are you asking an autodesk employee to share with you one of their internal tools for recording macros?  Or are you asking an autodesk employee to use their internal tool to record the macro for you?

 

As a side note, I do not believe the text border option is currently available in the API:

https://forums.autodesk.com/t5/inventor-customization/text-border-on-leader-text/td-p/8531223


Aaron Jarrett, PE
Inventor 2019 | i7-6700K 64GB NVidia M4000
LinkedIn

Life is Good.
0 Likes
Message 12 of 50

bradeneuropeArthur
Mentor
Mentor

@robertast how do you know that, have you seen it. But this is what you are searching for then?

@CGBenner is this story true.

I don't believe it that it is possible because of complexibility of inventor.

 

There is an event viewer that can capture events but more I don't believe it is available.

 

Regards.

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 13 of 50

robertast
Collaborator
Collaborator

@imajar 

therefore, ask an autodesk employee to use their resources and write around the text the part of the code that makes up that frame.

I saw that topic creating you in the instruction. But more than a year has passed, so I hope Autodesk can already sing this part of the code.

0 Likes
Message 14 of 50

bradeneuropeArthur
Mentor
Mentor

I still don't get what you need, sorry!

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 15 of 50

robertast
Collaborator
Collaborator

@bradeneuropeArthur 

 

I don’t want a "magical" button. I want the text to be written in code, and the edge. Just like in the video I show. All you have to do is iLogic.

0 Likes
Message 16 of 50

bradeneuropeArthur
Mentor
Mentor

So:

A macro in vba that creates text with a border. That's it?

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 17 of 50

robertast
Collaborator
Collaborator

I try to explain with finger again.
There is a code:

 

  Dim oDrawDoc As DrawingDocument
     oDrawDoc = ThisApplication.ActiveDocument

    Dim oActiveSheet As Sheet
     oActiveSheet = oDrawDoc.ActiveSheet
	 
	     Dim oTG As TransientGeometry
     oTG = ThisApplication.TransientGeometry

Dim sNote As String = "<StyleOverride Font='Arial' FontSize='0.3,5' Bold='True' Italic='True'>"+ "My Text" +  "</StyleOverride>"

Dim oDrawingNote As GeneralNote

oDrawingNote = oDrawDoc.ActiveSheet.DrawingNotes.GeneralNotes.AddFitted(oTG.CreatePoint2d(10.0#, 10.0), sNote)
    oDrawingNote.VerticalJustification = kAlignTextMiddle
    oDrawingNote.HorizontalJustification = kAlignTextCenter


But he doesn’t make a Border 😕

Message 18 of 50

robertast
Collaborator
Collaborator

@bradeneuropeArthur 

 

As it is. I need a macro or iLogic that creates text with a border

0 Likes
Message 19 of 50

bradeneuropeArthur
Mentor
Mentor

Think that this is not API supported as @imajar mentioned!

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 20 of 50

robertast
Collaborator
Collaborator

But the "Border" button is there. Hence, there is a procedure that is performed by clicking, so there is a code describing this procedure. Is it not possible to get the part of the code that does this?
I agree that the only thing was the ajarrett method before there was this "Border" button. But now ...

0 Likes