从documents找到的Catia坐标点输出程序相关函数,
点坐标提取及定义.................................................................................................................................. 1 HybridShapePointCoord (Object) .............................................................................................................. 1
Property Index.................................................................................................................................. 2 Properties ........................................................................................................................................ 2 对象控制................................................................................................................................................ 3 AnyObject (Object).................................................................................................................................. 3
Property Index.................................................................................................................................. 4
Method Index ................................................................................................................................... 4 Properties ........................................................................................................................................ 4 Methods .......................................................................................................................................... 5 选择元素................................................................................................................................................ 6 SelectedElement (Object).......................................................................................................................... 6
Property Index.................................................................................................................................. 6 Method Index ................................................................................................................................... 6 Properties ........................................................................................................................................ 7 Methods .......................................................................................................................................... 9 选择方法...............................................................................................................................................10 Selection (Object) ...................................................................................................................................10
Property Index.................................................................................................................................12 Method Index ..................................................................................................................................12 Properties .......................................................................................................................................13 Methods .........................................................................................................................................13
点坐标提取及定义
file:///F:/catiav5r16doc_en/English/online/interfaces/interface_hybridshapepointcoord.htm#
HybridShapePointCoord (Object)
IUnknown |
+---IDispatch |
+---CATBaseUnknown |
+---CATBaseDispatch |
+---AnyObject
|
+---HybridShape |
+---Point |
+---HybridShapePointCoord
Point defined by coordinates.
Role: To access data of the point feature created with its cartesian coordinates. See also:
Length
See also:
Reference
See also:
HybridShapeFactory
Property Index
PtRef
Returns or Sets the reference point for PointCoord feature.
RefAxisSystem
Returns or Sets the reference Axis System for PointCoord feature.
X
Returns X coordinate of the point.
Y
Returns Y coordinate of the point.
Z
Returns Z coordinate of the point.
Properties
o Property PtRef( ) As CATIAReference
Returns or Sets the reference point for PointCoord feature.
This data is not mandatory, if element is null, the origin point is taken. When an element is given, X, Y and Z are measured starting from this point. Sub-element(s) supported (see Boundary object): Vertex. Example:
This example retrieves in oPtRef the reference point for PointCoord feature.
Dim oPtRef As CATIAReference Set oPtRef = PointCoord.PtRef
o Property RefAxisSystem( ) As CATIAReference
Returns or Sets the reference Axis System for PointCoord feature.
This data is not mandatory, if element is null, the absolute axis system is taken. When an element is given, X, Y and Z are considered in this Axis system.
If reference point is not specified, X,Y and Z are measured from origin of this axis system. * Example:
This example retrieves in oRefAxis the reference Axis System for PointCoord feature.
Dim oRefAxis As CATIAReference
Set oRefAxis = PointCoord.RefAxisSystem
o Property X( ) As CATIALength (Read Only)
Returns X coordinate of the point. Example:
This example retrieves in oX the X coordinate for the PointCoord hybrid shape feature.
Dim oX As CATIALength Set oX = PointCoord.X
o Property Y( ) As CATIALength (Read Only)
Returns Y coordinate of the point. Example:
This example retrieves in oY the Y coordinate for the PointCoord hybrid shape feature.
Dim oY As CATIALength Set oY = PointCoord.Y
o Property Z( ) As CATIALength (Read Only)
Returns Z coordinate of the point. Example:
This example retrieves in oZ the Z coordinate for the PointCoord hybrid shape feature.
Dim oZ As CATIALength Set oZ = PointCoord.Z
对象控制 AnyObject (Object)
IUnknown |
+---IDispatch |
+---CATBaseUnknown
|
+---CATBaseDispatch |
+---AnyObject
file:///F:\\catiav5r16doc_en\\English\\online\\CAAScdBase\\CAAScdAutomationHome.htm
Represents the base object for all other objects except collection and reference objects. As a base object, it provides properties shared by any other object.
Property Index
Application
Returns the application.
Name
Returns or sets the name of the object.
Parent
Returns the parent object.
Method Index
GetItem
Returns an object from its name.
Properties
o Property Application( ) As CATIAApplication (Read Only)
Returns the application. The application is the root object of the object structure and can be retrieved from any object in this object structure using the Application property. The root object, also called top-level object, is the object located at the top of the application's object structure. It is used by clients to retrieve and navigate across all the application's subordinate objects. If the client runs in-process, it retrieves the object at the top of the object structure. If the client runs out-process, it should call the GetApplication method to retrieve the object at the top of the object structure, which is the only object accessible from outside. The Application property is thus the way to jump from any object up to the root of the object structure, allowing then to navigate downwards. For in-process scripting, the application is always referred to as CATIA. Note that the Application property of the Application object returns the Application object itself. Example:
This example retrieves in CurrentApplication the application object, root of the object structure, from a given object of this structure: a document refered to using the MyDoc variable.
Dim CurrentApplication As Application
Set CurrentApplication = MyDoc.Application
o Property Name( ) As CATBSTR
Returns or sets the name of the object. The name is a character string automatically assigned to any object to handle it easier. Even if the Name property allows you to reassign an object name, this is not advised. Many objects, such as the application and the collections, have names that you must not change, and it's safer to use Name as a read only property. When an object is part of a collection, the object name can often be used in place of the object rank to retrieve or remove the object, providing the Item and Remove methods of the collection feature an argument with the Variant type. A name must start with a letter. It can include numbers, but it can't include spaces. If the object has no name set, the default name returned is the object type. For example, the Name property of a Viewer3D object with no name set returns Viewer3D. Example:
This example retrieves in MyObjectName the name of the MyObject object.
MyObjectName = MyObject.Name
o Property Parent( ) As CATBaseDispatch (Read Only)
Returns the parent object. The parent object of a given object is the object just above in the object structure, usually the object that created this object and that aggregates it. In the case of an object part of a collection, the parent object is not the collection object itself, but the object that aggregates the collection object. The Parent property is the way to step upwards in the object structure. Note that the Parent property of the Application object returns the Application object itself. Example:
This example retrieves in ParentObject the parent object of the GivenObject object.
Dim ParentObject As AnyObject
Set ParentObject = GivenObject.Parent
Methods
o Func GetItem( CA TBSTR IDName) As CATBaseDispatch
Returns an object from its name.
Role: To retrieve an object when only its name is available. You should not use this method, but you can find it in the macros generated by the Tools->Macro command. Parameters: IDName
The searched obect name Returns:
The searched object