iLogic to Auto-Fill "Comments" iproperty Formatting

iLogic to Auto-Fill "Comments" iproperty Formatting

Anonymous
Not applicable
4,801 Views
2 Replies
Message 1 of 3

iLogic to Auto-Fill "Comments" iproperty Formatting

Anonymous
Not applicable

Hello All,

 

So it has been a long time since I last posted but I have always been able to come here with my questions. This one is probably much simpler than I'm making it but my lack of programming knowledge is limiting me here. All I'm trying to do is auto-populate the Comments field in a part's iProperties>Summary. I can get that far but it want for it to be multiple lines and I'm not sure how to make that happen with iLogic. So to lay out a simple model:

 

Dim String1 as String = IamaString1

Dim String2 as String = IamaString2

Dim String3 as String = IamaString3

 

iProperties.Value("Summary","Comments") = [?]

 

Result:

 

Comments:

IamaString1

IamaString2

IamaString3

 

I'm sure the answer is simple. Thanks in advance.

0 Likes
Accepted solutions (1)
4,802 Views
2 Replies
Replies (2)
Message 2 of 3

MechMachineMan
Advisor
Advisor
Accepted solution

Use 'vbcrlf'.

 

Dim String1 as String = IamaString1
Dim String2 as String = IamaString2
Dim String3 as String = IamaString3

iProperties.Value("Summary","Comments") = String1 & vbcrlf & String2 & vbcrlf & String3

--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes
Message 3 of 3

Anonymous
Not applicable

Perfect. That's exactly what I needed. Thanks Machine Man.

0 Likes