签到天数: 4 天 [LV.2]瞎扑签到2级
新手上路
- 积分
- 32
|
根据SPAutomationCourseLabsV2007.pdf 中的“PLACE A VESSEL ON A DRAWING”教程
Dim objPlacement As Placement
Set objPlacement = New Placement
Dim dirpath As String
Dim symbol As LMSymbol
Dim VesselLocation As String
VesselLocation = "C:\Program Files (x86)\SmartPlant\P&ID Reference Data\Symbols\Equipment\Vessels\Horizontal Drums\Horz Surge w-Horiz Dea.sym"
Set symbol = objPlacement.PIDPlaceSymbol(VesselLocation, 0.3, 0.2) '这句报错
错误信息是 "Runtime Error 91: Object variable or with block variable not set"
请教大家 这个问题怎么解决?
|
|