Register  Login   Search
 Latest Posts Minimize

RE: Remove unused Linestyles
Solid Edge Programming
09/03/2010 7:45 AM
jr199

Remove unused Linestyles
Solid Edge Programming
09/02/2010 1:25 PM
kmwolf

How to read block in a dft file without opening the dft file?
Solid Edge Programming
09/02/2010 9:02 AM
assassin.007

Inquire Element - Measure Diameter by VBA
Solid Edge Programming
09/02/2010 6:40 AM
JM

dissolve Reference to SubASM - how to??
Solid Edge Programming
09/02/2010 2:23 AM
LIHE

RE: Using Insight on a 64 bit Computer
Solid Edge General
08/31/2010 7:47 AM
Atom

Using Insight on a 64 bit Computer
Solid Edge General
08/30/2010 3:06 PM
Atom

RE: File Properties using VB.NET leave file locked
Solid Edge Programming
08/30/2010 9:57 AM
JBZ

RE: File Properties using VB.NET leave file locked
Solid Edge Programming
08/30/2010 3:20 AM
jr199

File Properties using VB.NET leave file locked
Solid Edge Programming
08/27/2010 4:36 PM
JBZ

RE: XLS link to the part
Solid Edge Programming
08/27/2010 4:11 PM
JBZ

RE: Save As for each view -- how 2 wait for SE !
Solid Edge Programming
08/27/2010 3:27 AM
jr199

vb6 se20 - solid edge Part - Hole size
Solid Edge Programming
08/26/2010 9:42 PM
cadraw

vb6 se20 - how to Drawing View Depth
Solid Edge Programming
08/26/2010 9:24 PM
cadraw

RE: Problem while getting the objects using "SelectSet" property.
Solid Edge Programming
08/26/2010 7:35 AM
jr199

RE: About the "Callout"!
Solid Edge Programming
08/26/2010 3:42 AM
fatkids

RE: Save As for each view -- how 2 wait for SE !
Solid Edge Programming
08/25/2010 3:28 AM
ErWo

RE: help to transfer C# codes as following to C++ codes?
Solid Edge Programming
08/24/2010 10:12 PM
assassin.007

RE: FamilyMembers Panel problem (refreshing)
Solid Edge Programming
08/24/2010 3:47 PM
peter6396

Save As for each view -- how 2 wait for SE !
Solid Edge Programming
08/24/2010 4:09 AM
LIHE

RE: FamilyMembers Panel problem (refreshing)
Solid Edge Programming
08/24/2010 1:28 AM
ErWo

help to transfer C# codes as following to C++ codes?
Solid Edge Programming
08/23/2010 10:34 PM
assassin.007

Problem while getting the objects using "SelectSet" property.
Solid Edge Programming
08/22/2010 7:59 AM
pratap

FamilyMembers Panel problem (refreshing)
Solid Edge Programming
08/20/2010 4:12 AM
peter6396

RE: AddLoftedFlange in SheetMetal
Solid Edge Programming
08/19/2010 4:33 AM
jason.newell

RE: PartList Positioning
Solid Edge Programming
08/19/2010 2:10 AM
ErWo

RE: Alternate Assemblies
Solid Edge Programming
08/18/2010 4:54 PM
peter6396

RE: About the "Callout"!
Solid Edge Programming
08/18/2010 7:39 AM
Danisan

XLS link to the part
Solid Edge Programming
08/18/2010 5:23 AM
romanes

About the "Callout"!
Solid Edge Programming
08/17/2010 2:49 AM
fatkids


  
 Forums Minimize

Subject: How to use the SetSectionPlanes method
Prev Next
You are not authorized to post a reply.

Author Messages
xiaogangUser is Offline
New Member
New Member
Posts:5

02/02/2010 5:55 PM  

 How to use SolidEdgeFramework.View the SetSectionPlanes method, please tell me the specific parameters of the role and how to get

JRUser is Offline
Site Member
Site Member
Posts:78

02/09/2010 3:53 AM  

Object.SetSectionPlanes(nPlanes, [Positions], [Normals], [FaceStyles])

positions = "line" on the plane as array of double (x,y,z)
normals = "normal vector" (direction) for the plane as array of double (x,y,z)
if you have 1 line and one normal vector you have one plane but for nPlanes you must set "2"
for 2 planes you must set 4 nPlanes.

example in vb.net:
Dim oSEApp As SolidEdgeFramework.Application = GetObject(, "SolidEdge.Application")
Dim oDoc As SolidEdgeFramework.SolidEdgeDocument = oSEApp.ActiveDocument
Dim oWin As SolidEdgeFramework.Window = oDoc.Windows.Item(1)
Dim oView As SolidEdgeFramework.View = oWin.View
Dim Positions(11) As Double
Dim normals(11) As Double

'the Positions of the first "line" on the plane
'the points are on the plane
Positions(0) = 0.02 'x
Positions(1) = 0.0 'y
Positions(2) = 0.0 'z

Positions(3) = 0.02 'x
Positions(4) = 0.1 'y 'point on the Y axis
Positions(5) = 0.0 'z

'normal-Vector for the direction of first plane
normals(0) = 0.0 'x
normals(1) = 0.0 'y
normals(2) = 0.0 'z

normals(3) = 0.1 'x 'make the plane on yz
normals(4) = 0.0 'y
normals(5) = 0.0 'z

''the Positions of the first "line" on the second plane
Positions(6) = 0.0 'x
Positions(7) = 0.0 'y
Positions(8) = 0.0 'z

Positions(9) = 0.0 'x
Positions(10) = 0.1 'y
Positions(11) = 0.0 'z
''normal-Vector for the direction of second plane
normals(6) = 0.0 'x
normals(7) = 0.0 'y
normals(8) = 0.0 'z

normals(9) = -0.1 'x
normals(10) = 0.0 'y
normals(11) = 0.0 'z
'set new
oView.SetSectionPlanes(4, Positions, normals)
xiaogangUser is Offline
New Member
New Member
Posts:5

02/09/2010 7:07 PM  
if you have 1 line and one normal vector you have one plane but for nPlanes you must set "2"
for 2 planes you must set 4 nPlanes.

I can not understand this sentence, please explain in detail
Thank you
JRUser is Offline
Site Member
Site Member
Posts:78

02/10/2010 12:14 AM  

You can create a plane with a position (a line with 2 points on th plane) and a normal (a line perpendicular to the plane with 2 points).
This is one plane. I don't now why, but for the nPlanes in the method SetSectionPlane you must set "2" for one Plane.
In the example are 2 planes created and nPlanes are set to 4.

You are not authorized to post a reply.
Forums > Solid Edge > Programming > How to use the SetSectionPlanes method



ActiveForums 3.7

  

 Users Online Minimize

Membership Membership:
Latest New User Latest: jbazaar
New Today New Today: 1
New Yesterday New Yesterday: 3
User Count Overall: 1968

People Online People Online:
Visitors Visitors: 1
Members Members: 0
Total Total: 1

Online Now Online Now:

  

The Code Project

Spatial Freedom Astroid

Use OpenDNS

Copyright 2010 JasonNewell.NET   Terms Of Use  Privacy Statement