Part
Access to the part is permitted as long as 'Exists' is true. Modifications of the HiCAD data structure, like deleting or processing parts do not result in the fact that you can no longer work with the part object.
|
|
|
FUNC |
COM |
SF |
---|---|---|---|---|---|
Empty |
Is the part empty? |
bool Empty ( ) |
1211.1 |
1211.2 |
+ |
StoreActive |
Saves the active HiCAD part in the object. |
void StoreActive ( ) |
1211.2 |
1211.2 |
- |
SetActive |
Sets the part active. |
void SetActive ( ) |
1211.2 |
1211.2 |
- |
Delete |
Deletes the part. |
void Delete ( ) |
1211.1 |
1211.2 |
- |
Exists |
Does the part still exist? |
bool Exists ( ) |
1211.2 |
1211.2 |
+ |
SetName |
Sets the part name. |
void SetName (String s) |
1211.1 |
1211.2 |
- |
Copy |
Makes a copy of the part. |
void Copy (Part& p) |
1211.1 |
1211.2 |
- |
Load |
Loads a part. |
void Load (String fileName) |
1211.1 |
1211.2 |
- |
Save |
Saves a part. |
void Save (String fileName) |
1212.1 |
- |
- |
FeatureOff |
Switches the feature off for the part. |
void FeatureOff ( ) |
1211.1 |
1211.2 |
- |
Update |
Updates the part and all parts which are linked via processing variables. |
void Update ( ) |
1211.1 |
1211.2 |
- |
UpdateTree |
Updates the part (assembly) and all of its subordinate parts. |
void UpdateTree ( ) |
1212.1 |
1212.1 |
- |
FeatIDBeforeInsPos |
Supplies the ID of the feature before the insertion position. |
int FeatIDBeforeInsPos ( ) |
1211.2 |
1211.2 |
- |
IsInDesignVariantBase |
Is the part a subordinate part of the design variant base part (in the creation of a design variant)? |
bool IsInDesignVariantBase ( ) |
1211.1 |
1211.2 |
- |
IsDesignVariantBase |
Is the part a design variant base part (in the creation of a design variant)? |
bool IsDesignVariantBase ( ) |
1211.1 |
1211.2 |
- |
StoreProtPart |
Stores the currently calculated part in the object. |
void StoreProtPart(Part& part) |
1211.2 |
1211.2 |
+ |
Clear |
Clears the object. |
void Clear ( ) |
1211.2 |
1211.2 |
+ |
Move |
Moves the part. (Rotate, Translate; Mirror) |
void Move (Transformation trans) |
1211.3 |
1211.3 |
- |
MoveUnderPart |
Changes the part structure: The part will be moved under the given part. |
void MoveUnderPart (Part part) |
1211.3 |
1211.3 |
- |
Example Part
START 59
FUNC delete p
FUNC Part p
REM load part: You can then access the loaded part via 'p'.
FUNC p.Load ("c:\temp\xyz.kra")
REM define transformation
FUNC delete trans
FUNC Transformation trans
FUNC trans.SetTranslation (100, 0, 10)
REM move part
FUNC p.Move (trans)
END