|
SolidWorks : Text als Gravur
G. Dawg am 19.03.2008 um 08:55 Uhr (0)
Dieser Schnipsel sollte Dir eigentlich weiterhelfen.Code:dummy = swModel.AddCustomInfo3("", "Dateiname", swCustomInfoText, "$PRP:""SW-Dateiname(File Name)""") swModel.CustomInfo("Dateiname") = "$PRP:""SW-Dateiname(File Name)""" GET_DATEINAME = swModel.GetCustomInfoValue("", "Dateiname")------------------
| | In das Form SolidWorks wechseln |
|
SolidWorks : Text als Gravur
G. Dawg am 19.03.2008 um 07:55 Uhr (0)
Vielleicht hilft Dir das Beispiel aus der SolidWorks API weiter:Code:------------------------------- Preconditions: (1) Part document is open and contains sketch text. (2) Feature for sketch text is selected. Postconditions: Original sketch text is replaced with new sketch text, "New text".-------------------------------Option Explicit Dim swApp As SldWorks.SldWorksDim swModel As ObjectDim swSelMgr As SldWorks.SelectionMgrDim swFeat As SldWorks.FeatureDim swSketch As SldWorks.SketchDi ...
| | In das Form SolidWorks wechseln |
|
SolidWorks : Text als Gravur
G. Dawg am 26.03.2008 um 13:09 Uhr (0)
Ich habs jetzt nicht ausprobiert, aber so ca. so sollte es gehen:Code:------------------------------- Preconditions: (1) Part document is open and contains sketch text. (2) Feature for sketch text is selected. Postconditions: Original sketch text is replaced with new sketch text, "New text".-------------------------------Option ExplicitDim swApp As SldWorks.SldWorksDim swModel As ObjectDim swSelMgr As SldWorks.SelectionMgrDim swFeat As SldWorks.FeatureDim swSketch As SldWorks.SketchDim sw ...
| | In das Form SolidWorks wechseln |
|
Anzeige:
Anzeige: (Infos zum Werbeplatz)
 |