C# 클래스 Revit.SDK.Samples.BeamAndSlabNewParameter.CS.Command

상속: IExternalCommand
파일 보기 프로젝트 열기: AMEE/revit

공개 메소드들

메소드 설명
Execute ( Autodesk revit, string &message, ElementSet elements ) : Autodesk.Revit.UI.Result

Implement this method as an external command for Revit.

FindElement ( string UniqueIdValue ) : void

found the element which using the GUID that was assigned to the shared parameter in the shared parameters file.

SendValueToListBox ( ) : ArrayList

Display the value of Unique ID parameter in a list box

SetNewParameterToBeamsAndSlabs ( ) : bool

Add a new parameter, "Unique ID", to the beams and slabs The following process should be followed: Open the shared parameters file, via the Document.OpenSharedParameterFile method. Access an existing group or create a new group, via the DefinitionFile.Groups property. Access an existing or create a new external parameter definition, via the DefinitionGroup.Definitions property. Create a new Binding with the categories to which the parameter will be bound using an InstanceBinding or a TypeBinding. Finally add the binding and definition to the document using the Document.ParameterBindings object.

SetValueToUniqueIDParameter ( ) : void

Set value(uuid) to Unique ID parameter

비공개 메소드들

메소드 설명
AccessOrCreateExternalSharedParameterFile ( ) : DefinitionFile

Access an existing or create a new shared parameters file

메소드 상세

Execute() 공개 메소드

Implement this method as an external command for Revit.
public Execute ( Autodesk revit, string &message, ElementSet elements ) : Autodesk.Revit.UI.Result
revit Autodesk An object that is passed to the external application /// which contains data related to the command, /// such as the application object and active view.
message string A message that can be set by the external application /// which will be displayed if a failure or cancellation is returned by /// the external command.
elements ElementSet A set of elements to which the external application /// can add elements that are to be highlighted in case of failure or cancellation.
리턴 Autodesk.Revit.UI.Result

FindElement() 공개 메소드

found the element which using the GUID that was assigned to the shared parameter in the shared parameters file.
public FindElement ( string UniqueIdValue ) : void
UniqueIdValue string
리턴 void

SendValueToListBox() 공개 메소드

Display the value of Unique ID parameter in a list box
public SendValueToListBox ( ) : ArrayList
리턴 System.Collections.ArrayList

SetNewParameterToBeamsAndSlabs() 공개 메소드

Add a new parameter, "Unique ID", to the beams and slabs The following process should be followed: Open the shared parameters file, via the Document.OpenSharedParameterFile method. Access an existing group or create a new group, via the DefinitionFile.Groups property. Access an existing or create a new external parameter definition, via the DefinitionGroup.Definitions property. Create a new Binding with the categories to which the parameter will be bound using an InstanceBinding or a TypeBinding. Finally add the binding and definition to the document using the Document.ParameterBindings object.
public SetNewParameterToBeamsAndSlabs ( ) : bool
리턴 bool

SetValueToUniqueIDParameter() 공개 메소드

Set value(uuid) to Unique ID parameter
public SetValueToUniqueIDParameter ( ) : void
리턴 void