TBC Macros and Extensions

 View Only

Use Trimble.Vce.UI.ConstructionCommands

  • 1.  Use Trimble.Vce.UI.ConstructionCommands

    Posted 05-15-2023 10:50

    Hello Trimble Community,

    Looks like Trimble\Macros SDK\Trimble.Vce.UI.ConstructionCommands.dll  includes lots of combined method such as insert utility node that saves a lot of time to use. All I'm trying to do to insert the node and have the command UI hidden.

    Here is what I wrote:

    from Trimble.Vce.Interfaces.Construction import UtilityNodeType
    from Trimble.Vce.UI.ConstructionCommands import InsertUtilityNodeCmd
    
    myCommand=InsertUtilityNodeCmd()
    myCommand.Hidden=True
     #1239 is my my utility SIMP serial
    SIMP=self.currentProject.Concordance.Lookup(1239)
    paramList=[uline,UtilityNodeType(12),SIMP,14]
    paramArray=Array[object](paramList)
    myCommand.Execute(paramArray)


    do I need to call below method


    to be able to use InsertUtilityCmd ?



    ------------------------------
    Morteza Kiani
    Thanks
    ------------------------------