Message 1 of 8
Testing code formatting appearance

Not applicable
06-23-2009
04:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I've hears from Autodesk that the code formatting for newsreaders has been implemented.
Here's some code (from Frank Oquendo's Curve Class) posted via the web site as plain text and formatted with the website recommended squiggly bracket code squiggly bracket.
We soon see how it looks in a newsreader as well as on the web
{code}
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Public Function GetPointAtDistance(Dist As Double) As Variant
Dim RetVal As Variant, Pt(0 To 2) As Double
Dim i As Long
With clsVLAX
.SetLispSymbol "handle", oAcadEntity.Handle
.SetLispSymbol "dist", Dist
.EvalLispExpression "(setq lst (vlax-curve-getPointAtDist (handent handle) dist))"
RetVal = .GetLispList("lst")
.NullifySymbol "handle", "dist", "lst"
End With
For i = 0 To 2
Pt(i) = RetVal(i)
Next
GetPointAtDistance = Pt
End Function ' GetPointAtDistance
{code}
Regards,
Laurie Comerford
I've hears from Autodesk that the code formatting for newsreaders has been implemented.
Here's some code (from Frank Oquendo's Curve Class) posted via the web site as plain text and formatted with the website recommended squiggly bracket code squiggly bracket.
We soon see how it looks in a newsreader as well as on the web
{code}
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Public Function GetPointAtDistance(Dist As Double) As Variant
Dim RetVal As Variant, Pt(0 To 2) As Double
Dim i As Long
With clsVLAX
.SetLispSymbol "handle", oAcadEntity.Handle
.SetLispSymbol "dist", Dist
.EvalLispExpression "(setq lst (vlax-curve-getPointAtDist (handent handle) dist))"
RetVal = .GetLispList("lst")
.NullifySymbol "handle", "dist", "lst"
End With
For i = 0 To 2
Pt(i) = RetVal(i)
Next
GetPointAtDistance = Pt
End Function ' GetPointAtDistance
{code}
Regards,
Laurie Comerford