Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
in reply to: Anonymous

The code i try to make!

 

SyntaxEditor Code Snippet

Dim oDoc As Document
Dim oCompDef As PartComponentDefinition
oCompDef = ThisApplication.ActiveDocument.ComponentDefinition
Dim oiFeatComp As iFeatureComponent

' Get the command manager.
Dim oCommandMgr As CommandManager 
oCommandMgr = ThisApplication.CommandManager

'Get control definition
Dim oControlDef As ControlDefinition 
oControlDef = ThisApplication.CommandManager.ControlDefinitions("PartiFeatureInsertCmd")

' Execute the command synchronously.  
Call oControlDef.Execute2(True) 

Dim strPrompt As String 
strPrompt = oiFeatComp.Name 
iProperties.Value("Custom", "TEST") = strPrompt

 

I want the name of iFeature who is selected by the user.

 

 

ifeature.JPG