This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function SetWindowTitle | |
{ | |
$mWindowName = $dsWindow.Name | |
switch($mWindowName) | |
{ | |
"InventorFrameWindow" | |
{ | |
$windowTitle = $UIString["LBL54"] | |
} | |
"InventorDesignAcceleratorWindow" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Erzwinge roten Rahmen, wenn Eigenschaften leer sind | |
#Gilt nur wenn Eigenschaften NICHT im Dynamic Grid sind | |
$CheckProperties = @("Description") | |
CheckPropertyNull $CheckProperties | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Erstanlage setzen | |
AddHandlerCreateMode |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Bei Zeichnungen werden die Modell Eigenschaften der Vorlage kopiert | |
if ($Document.DocumentType -like "12292") { #entspricht kDrawingDocumentObject | |
CopyModelProperties | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$global:CIDEON_GENERAL_TOOLS = New-Object -TypeName CIDEON.GENERAL.TOOLS.CIDEON_GENERAL_TOOLS | |
$global:CIDEON_VAULT_DOCUMENT_TOOLS = New-Object -TypeName CIDEON.VAULT.DOCUMENT.TOOLS.CIDEON_VAULT_DOCUMENT_TOOLS($VaultConnection) | |
$file = $CIDEON_VAULT_DOCUMENT_TOOLS.CDN_GetLatestFileObjectByMasterFileID($selected.Id); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#retrieve property value given by displayname from folder (ID) | |
function CDNGetFolderPropValue ([Int64] $mFldID, [STRING] $mDispName) | |
{ | |
$PropDefs = $vault.PropertyService.GetPropertyDefinitionsByEntityClassId("FLDR") | |
$propDefIds = @() | |
$PropDefs | ForEach-Object { | |
$propDefIds += $_.Id | |
} | |
$mPropDef = $propDefs | Where-Object { $_.DispName -eq $mDispName} | |
$mEntIDs = @() |