Keyboard TAB key functionality in iProperty.

Keyboard TAB key functionality in iProperty.

aurel_e
Collaborator Collaborator
525 Views
4 Replies
Message 1 of 5

Keyboard TAB key functionality in iProperty.

aurel_e
Collaborator
Collaborator

Hi,

 

In my drawing template we have got iProperties: "Works Order No" and "Customer".

I need to insert in the drawing a QR code. Scanning that would fill 2 fields in a form. The qr code need to concatenate a combined iProperty that would look like =<Works Order No> & Tab & <Customer>.

Any idea how to achieve that? Or if you know any QR code addin to combine iproperties like that?

 

Thanks.

0 Likes
Accepted solutions (1)
526 Views
4 Replies
Replies (4)
Message 2 of 5

frederic.vandenplas
Collaborator
Collaborator

Hi this code seems to work in the value field but the text does not show the tab.

 

Sub IpropertyWithTab()

Dim odoc As PartDocument
Set odoc = ThisApplication.ActiveDocument

odoc.PropertySets.Item("User Defined Properties").Item("test").Value = "test" & vbTab & "test"

End Sub

 

 

fredericvandenplas_0-1717666351956.png

 

If you think this answer fullfilled your needs, improved your knowledge or leads to a solution,
please feel free to "kudos"
0 Likes
Message 3 of 5

Michael.Navara
Advisor
Advisor
Accepted solution

For conversion iProperty value to QR Code you can use Be.Smart Tools4Inventor

Content of the iProperty expression can be created using external program like notepad. Write text for expression (including 'tab') in notepad and Copy+Paste put them to iProperty expression.

Message 4 of 5

bradeneuropeArthur
Mentor
Mentor

bradeneuropeArthur_0-1717679581290.png

bradeneuropeArthur_1-1717679636617.png

TAB HAS 8 SPACES

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

Message 5 of 5

Michael.Navara
Advisor
Advisor

You can also update the solution provided by @bradeneuropeArthur with the following:

Use Tab char in iProperty instead of whitespaces, because with Tab the texts become aligned.

You can create custom iProperty named Tab using simple code below

 

iProperties.Value("Custom", "Tab") = vbTab

 

MichaelNavara_0-1717685654496.png