How do I add an " as a part of an string(text) in ilogic ?

How do I add an " as a part of an string(text) in ilogic ?

Darkforce_the_ilogic_guy
Advisor Advisor
1,255 Views
4 Replies
Message 1 of 5

How do I add an " as a part of an string(text) in ilogic ?

Darkforce_the_ilogic_guy
Advisor
Advisor

I am trying to make something complex ... but to do it I need to add an an string to an text doc ... the problem is at " is an part og the text .. " normale at use to start or and text/String ..  so it give me problem

any fix to this ?

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

Anonymous
Not applicable

Not 100 percent sure what you are asking

BUT here is some code from one of my blog posts that writes iProperties and text to be copied to the clipboard (full code in link)

 

hopefully this points you in the right direction.

 

Dim oClipboard As String = "Unofficial Inventor  : " & _ 
ClintBrown3D & vbLf & vbLf & "  >>> Material = " & oMaterial & vbLf & _ 
"  >>> Mass = " & oMass & " kg" & vbLf & _ 
"  >>> Volume = " & oVolume & " mm^3" & vbLf & "  >>> Surface Area = " & oSurfaceArea & " mm^3"
Clipboard.SetText(oClipboard)

https://clintbrown.co.uk/2020/03/28/ilogic-enhanced-iproperties-copied-to-clipboard/ 

0 Likes
Message 3 of 5

Darkforce_the_ilogic_guy
Advisor
Advisor

what I ask is how to i make this in to an string

 

<?xml version="1.0"?>

 

 

The problem is that inventor/ilogic sees " as an start og end of string/text but what I need is it to be a part of the text. 

 

 

that part of the text is somthing that will be standard .. and not copy form the inventor files. so I might not be able to use that you givning me

 

 

 

0 Likes
Message 4 of 5

Anonymous
Not applicable

Understood! I've had this problem before, and I have used either text parameters or iProperties.

 

@ClintBrown3D Autodesk Inventor 26.png

 

msgbox(iProperties.Value("Summary", "Subject"))

@ClintBrown3D Autodesk Inventor 27.png 

If you do use text parameters, you can copy them in and out via XML https://clintbrown.co.uk/2020/01/25/using-xml-to-drive-ilogic-configurations/

 

Hope this helps

0 Likes
Message 5 of 5

JhoelForshav
Mentor
Mentor
Accepted solution

Hi @Darkforce_the_ilogic_guy 

Use Doubble citation:

Dim oString As String = "<?xml version=""1.0""?>"
MsgBox(oString)