- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report