Community
Civil 3D Customization
Welcome to Autodesk’s AutoCAD Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Point Group Creation Issue

6 REPLIES 6
Reply
Message 1 of 7
Civil3DReminders_com
416 Views, 6 Replies

Point Group Creation Issue

When point groups are deleted through the UI and then recreated via code with the same name the criteria such as the excluded point number list is included. It would be nice if it started with a clean slate once created and not keep around deleted point group. 

Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni
6 REPLIES 6
Message 2 of 7

The work around is to clear the QueryBuilder

 

AeccPointGroup pointGroup = aeccApp.AeccDoc.PointGroups.Add(pointGroupName.ToUpper());
pointGroup.QueryBuilder.Clear();

Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni
Message 3 of 7

Hi Chris -

 

Yes, you need to call the IAeccPointGroupQueryBuilder:: Clear()

 

BTW - PointGroup is also exposed in .NET API.

 

Cheers,

Partha Sarkar

Autodesk



Partha Sarkar
Developer Technical Services
Autodesk Developer Network

Message 4 of 7

I'm fairly certain I went with the COM because I couldn't figure out the GetQuery() and SetQuery() in .NET. Yep, trying to get a query string and can't seem to figure it out. 

Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni
Message 5 of 7

Hi;

 

Read this about point groups queries. (And generally about COGO points...)

 

Cheers;

 

http://civilizeddevelopment.typepad.com/civilized-development/2012/06/21wojp-week-10-mastering-point...

 

 

Message 6 of 7

Its there -

 

PointGroup.GetQuery()

 

PointGroup.SetQuery()

 

Thanks,

Partha



Partha Sarkar
Developer Technical Services
Autodesk Developer Network

Message 7 of 7

Yep, but it's really hard to figure out how to get the object since it does not return a StandardPointGroupQuery or a CustomPointGroupQuery directly. One has to be smart enough to do something like this:

 

StandardPointGroupQuery ptGroupQuery = (StandardPointGroupQuery)ptGroup.GetQuery();

 

Even then I have no real idea the difference between StandardPointGroupQuery and CustomPointGroupQuery, at least based on the API documentation. 

Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report