Adding Cogo Points to Group with query - bug in Civil 3D 2024?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
According to the API, Cogo Points can be added to a Group with a query like this:
StandardPointGroupQuery query = new StandardPointGroupQuery();
query.IncludeNumbers = "1,3,7";
pointGroup.SetQuery(query);If you want to add points 1, 3 and 7 to the group.
Up to Civil 3D 2023 this worked fine, but since Civil 3D 2024 strange things happens. Only the first point is added to the group.
If I add a new point, the query is build like this:
Which work in Civil 3D 2023, but in Civil 3D 2024 I get an exception:
If I manually edit the Point Group in Civil 3D, I cannot include Point Numbers separated by a comma only (which does work in Civil 3D 2023 btw). If I press the OK button, I get a Command Line warning that the type is not right (in Dutch, which is the OS language, while Civil 3D is English):
Command: Type komt niet overeen. ( Point Number = 3,4,9 )But if I include a range with a dash, the query is accepted, even combined with comma separated values:
It seems like Civil 3D 2024 expects at least one dash, while in prior versions it was not mandatory. I don't know why Autodesk changed it in the application, it worked for years without any trouble. Anyone who has a clue how to solve this or bypass it? Of course I can see if I add a query with a dash, but it can happen dat only non-sequential ranges must be added.