LuaPart Class

PartProxy

LuaPart Class

Lua Part wrapper
Inheritance Hierarchy
SystemObject  PartProxyLuaBase
    PartProxyLuaPart

Namespace:  PartProxy
Assembly:  PartProxy (in PartProxy.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class LuaPart : LuaBase
Public Class LuaPart
	Inherits LuaBase
public ref class LuaPart : public LuaBase
type LuaPart =  
    class
        inherit LuaBase
    end

The LuaPart type exposes the following members.

Constructors
  NameDescription
Public methodLuaPart
default constructor
Top
Properties
  NameDescription
Public propertyAncestors
Get the ancestors of the part
Public propertyAttributes
Gets the attributes.
Public propertyBomInclude
Set and get BomInclude property
Public propertyBrotherPrev
Get "previus brother" (used in sort tree)
Public propertyCadLayer
Returns the underlaying layer of the part in the CAD
Public propertyChildren
Get the children of the part
Public propertyDepth
Returns the depth of the part
Public propertyForcedSpotlightColor
Set and get forced spotlight color
Public propertyHasChildren
Gets a value indicating whether this instance has children.
Public propertyIsTop
Check whether the part is TOP or not
Public propertyLayerStatus
Set and get layer status
Public propertyLocked
Get or set part lock status
Public propertyName
Get or set part name
Public propertyParent
Set and get the parent's part
Public propertyPurchased
Set and get purchased attribute
Public propertyVisible
Get or set part visibility
Top
Methods
  NameDescription
Public methodActivate
Activate the part
Public methodAsEnumerableBreadthFirst
Iterate the tree structure in breadth-first way
Public methodAsEnumerableDepthFirst
Iterate the parts structure in depth-first way Recursive
Protected methodAssertLuaObject
validate the object
(Inherited from LuaBase.)
Public methodCopy
Copies the specified to PRT.
Public methodDelAttr
Delete a part's attribute (name and value)
Protected methodDispose
Disposes this instance.
(Inherited from LuaBase.)
Protected methodDispose(Boolean)
Responsible for unreferencing the object
(Inherited from LuaBase.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodErase
Erase the part
Public methodExplode
Explode the part
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFindChildByLayer
Finds the child by layer.
Public methodFindChildByName
Find a part between my children, if there are more parts with same name, it returns the first found. Search at all levels
Public methodStatic memberGetActive
Get the CURRENT part
Public methodGetAllAttr
Get a list with all part Attributes
Public methodGetAttr
Get the part Attribute
Public methodGetBasePoint
Get the base point
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Protected methodGetReference
Gets the reference.
(Inherited from LuaBase.)
Public methodGetSiblingPos
Returns the position of the part in its level () (0 based, -1 = top part)
Public methodStatic memberGetTop
Get the TOP part
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHide
Hide the part (option with children)
Public methodIsChildOf
Determines whether [is child of] [the specified parent].
Public methodIsLockedParent
Check whether the parent of part is Locked or not (NOT consider the current lock status of part)
Public methodIsLockedRec
Check whether the part is Locked directly or a parent level
Public methodStatic memberIsLuaPart
Check whether is a part or not
Public methodLoad
Load a dwg part structure from file as child of the current part Returns the top loaded part
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMoveAfter
FOR SORTED TREE: Move prt After passed prt
Public methodMoveBefore
FOR SORTED TREE: Move prt Before passed prt
Public methodNewChild
Create a new child. Returns the part created
Public methodStatic memberNewInstance
News the instance.
Public methodPointer
Returns value of the pointer in C++ environment
Public methodPointerInt Obsolete.
[DEPRECATED] Returns value of the pointer in C++ environment
Public methodStatic memberPrtFromPointer
Returns the part corresponding to ptrStr pointer in C++ environment
Public methodPrtFromPointerInt Obsolete.
[DEPRECATE] Returns the part corresponding to ptr pointer in C++ environment
Public methodPush
put the object on the stack
(Inherited from LuaBase.)
Public methodRedraw
Redraws the specified mode.
Public methodSave
Save the parts structure
Public methodSetAttr
Set the part attribute
Public methodSetBasePoint
Set the base point
Public methodSetLabelBold
Set the label BOLD attribute
Public methodSetLabelColor(Color)
Set the label using a system color
Public methodSetLabelColor(Int32, Int32, Int32)
Set the color using RGB values
Public methodSetLabelItalic
Set the Label ITALIC attribute
Public methodSetLabelUnderline
Set the label UNDERLINE attribute
Public methodShow
Show the part (option with children)
Public methodToString
Returns a String that represents this instance.
(Overrides LuaBaseToString.)
Protected methodUnReference
Uns the reference.
(Inherited from LuaBase.)
Top
See Also