Message 1 of 21
Access FeatureLine using COM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm trying to access feature line with python, but my main obstacle is the lack of knowledge of COM. I need to check if my selected object is a feature line. I don't know what property i need to use. Is there anyone who can help to fix this snippet of my code?
app = System.Runtime.InteropServices.Marshal.GetActiveObject("Autocad.Application")
CivilApp = app.GetInterfaceObject("AeccXUiLand.AeccApplication.12.0")
AecDoc = CivilApp.ActiveDocument
AecDB = AecDoc.Database
sset = AecDoc.PickfirstSelectionSet
n = sset.Count
for i in range(n):
if sset.Item(i).Name == "AeccLandFeatureLine"
Alumni