请教SPP&ID二次开发的PIDPlaceSymbol接口问题
根据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"
请教大家 这个问题怎么解决?
页:
[1]