.NET

Reply
*GPaolo
Message 1 of 2 (307 Views)

arc.Normal = 0,0,-1

307 Views, 1 Replies
08-02-2006 06:58 AM
Dear all ,i need a big pleasure.
i have insert a dxf in my drawing and when i make the command "_list " a see
that someone arc or circle have the normal's Z value set to -1,but i see the
correct display
then the VBA Api i make the changement with the instruction :

if arc.normal.z=-1 then
arc.normal.z=1
arc.update
endif
when is finish i have correct normal and correct display


now i have rewrite for .NET Api with this code:
if arc.normal.z=-1 then
arc.normal=new acge.vectord3d(0,0,1)
end if
but this code don't work.
when i have finish i see the correct normal but the incorrect display.


Some help?
Thank's in advance
GPaolo
*GPaolo
Message 2 of 2 (307 Views)

Re: arc.Normal = 0,0,-1

08-02-2006 11:16 PM in reply to: *GPaolo
I have resolved.

here the solution.

many thank's at all

GPaolo

'--------------------------------------------------------

Dim nulltransform As New AcGe.Matrix3dBuilder

nulltransform.ElementAt(0, 0) = 1

nulltransform.ElementAt(0, 1) = 0

nulltransform.ElementAt(0, 2) = 0

nulltransform.ElementAt(0, 3) = 0

nulltransform.ElementAt(1, 0) = 0

nulltransform.ElementAt(1, 1) = 1

nulltransform.ElementAt(1, 2) = 0

nulltransform.ElementAt(1, 3) = 0

nulltransform.ElementAt(2, 0) = 0

nulltransform.ElementAt(2, 1) = 0

nulltransform.ElementAt(2, 2) = -1 'VALUE SET TO CHANGE NORMAL

nulltransform.ElementAt(2, 3) = 0

nulltransform.ElementAt(3, 0) = 0

nulltransform.ElementAt(3, 1) = 0

nulltransform.ElementAt(3, 2) = 0

nulltransform.ElementAt(3, 3) = 1

If Arc.Normal.Z = -1 Then

Arc.TransformBy(nulltransform.ToMatrix3d)

End If


"GPaolo" ha scritto nel messaggio
news:5256092@discussion.autodesk.com...
Dear all ,i need a big pleasure.
i have insert a dxf in my drawing and when i make the command "_list " a see
that someone arc or circle have the normal's Z value set to -1,but i see the
correct display
then the VBA Api i make the changement with the instruction :

if arc.normal.z=-1 then
arc.normal.z=1
arc.update
endif
when is finish i have correct normal and correct display


now i have rewrite for .NET Api with this code:
if arc.normal.z=-1 then
arc.normal=new acge.vectord3d(0,0,1)
end if
but this code don't work.
when i have finish i see the correct normal but the incorrect display.


Some help?
Thank's in advance
GPaolo
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.