ParallelGraphics Forums
Authoring Tools
You are here: [Forums]::[Authoring Tools]

Registration 
Registration
Forgot your password?

Help 
Help
Support

Quick search 

Subscribe to newsletters 

Install Cortona VRML Client for FREE!
Outline 3D
Try RobinZone!
email:  password:
  Authoring Tools

Subject: Re: reformatting coordindex
Sender: Uh 7.12.05 08:53

...
I just tried the vrmlpad demo and it seems very handy. I'm missing one option though. My 3D app creates fields like coordindex with one number on one line. I did try sitepad pro and in this app I could "reformat" a block of values to fit on a few lines instead of one number on every new line.

...

Is there a way to delete linefeeds for a selection?

...

Try this macros:

BindCommand "Reformat", "Reformat text", "&Reformat", , "shell32.dll#54"

Public Sub Reformat
BeginOperation "Reformating"
For Each nod In StdProtos("IndexedFaceSet").Instances
    Set reg = New RegExp
    reg.Pattern = "\r\n"
    reg.Global = True
    txt = nod("coordIndex").Range.Text
    txt = reg.replace(txt,"")
    nod("coordIndex").Range.Text = txt
    txt = nod("coord")("point").Range.Text
    txt = reg.replace(txt,"")
    nod("coord")("point").Range.Text = txt
Next
EndOperation
End Sub

 


reformatting coordindex / arjo.rozendaal@xs4all.nl / 30.11.05 10:33
     Re: reformatting coordindex / Uh / 7.12.05 08:53
         Re: reformatting coordindex / arjo.rozendaal@xs4all.nl / 7.12.05 12:10

Messages in thread: 3


© 1998-2007 ParallelGraphics. All rights reserved. Terms of use.