Tuesday, February 07, 2012
How to add objects to the "group" in DFT?
Last Post 12 Aug 2010 11:20 PM by fatkids. 2 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
fatkidsUser is Offline
New Member
New Member
Posts:53

--
12 Aug 2010 08:41 AM  

Hi, all!

I draw some objects in dft, include line, callout, textbox, etc.

I want to add these objects to "group",

How do I ?

Thanks.

[script removed] [script removed]
Jason NewellUser is Offline
Site Owner
Advanced Member
Advanced Member
Posts:895
Avatar

--
12 Aug 2010 05:41 PM  
Reading through the SDK help, it looks like you can add groups via the Sheet object. Something like:

Draft->Sheets(i)->Groups->Add()

Here are the remarks from the Groups.Add Method in the SDK Help:

If there is anything in the select set when you add a group to the collection, the contents of the select set will be added to the group. If the select set is empty, an empty group will be created. The contents of the select set are associated with the active sheet. So if you add a group based on the contents of the select set, that group will be added to the active sheet, regardless of the owner of the Groups collection. For example if Sheet1 is the active sheet, and items from Sheet1 have been added to the select set, if you call Sheet2.Groups.Add(), the new group will be added to Sheet1. If you want to copy items from the select set on one sheet to a group on another sheet, after adding items to the select set from the first sheet, call the Activate method on the second sheet, and then add the new group. Empty groups are always added to the sheet that owns the Groups collection.
Jason Newell
Applications Architect
www.jasonnewell.net
fatkidsUser is Offline
New Member
New Member
Posts:53

--
12 Aug 2010 11:20 PM  
Thanks, Jason.
You are not authorized to post a reply.

Active Forums 4.2
Copyright © 2011 JasonNewell.NET