.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

arc.Normal = 0,0,-1

1 REPLY 1
Reply
Message 1 of 2
Anonymous
633 Views, 1 Reply

arc.Normal = 0,0,-1

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
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost