Sunday, February 05, 2012
How to obtain Suboccurrence from Reference ?
Last Post 12 Jan 2010 05:49 AM by Juraj Joob. 5 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Juraj JoobUser is Offline
New Member
New Member
Posts:26

--
12 Jan 2010 04:21 AM  

How to obtain Suboccurrence from Reference and Reference from Suboccurrence ?

Thanks.

JRUser is Offline
New Member
New Member
Posts:91

--
12 Jan 2010 05:10 AM  

Hi,

example:
'Suboccurrence from Reference:
'Save the Way with Names of Occurrences in WayNames List

'from down Referenc to Top level
do
if TypeOf Reference.immediateParent is Occurrence then
'The TopLevel
WayNames.Add(Reference.immediateParent.Name)
exit do
else
WayNames.Add(Reference.immediateParent.Object.Name)
Reference=Reference.immediateParent
end if
Loop

'The Way from Occurrence to Suboccurrence with saved names:
object=Occurrences.Item(WayNames(WayNames.Count-1))
for i=way.Names.count-2 to 0
object=object.suboccurrences.item(WayNames(i))
next i

suboccurrence=object
---------------------------------------------------------------------------------------

For Reference from Suboccurrence you must Create a Reference in Loop with Assembly.CreateReference(...)
from down to Top Level Reference.

Regards
JR

Juraj JoobUser is Offline
New Member
New Member
Posts:26

--
12 Jan 2010 05:41 AM  
Hi JR,

thanks for idea to get Suboccurrence from Reference. But i don't undestand how to create References with Assembly.CreateReference(...).
I want References, because i have problem with selecting, deselecting, showing an hidding suboccurrences. I thing that references are objects, that can showing and selecting instead of suboccurrences.
Please, post me example, how to create References with Assembly.CreateReference(...) and how to select (SelectSet.Add(Reference?)) and hide suboccurrences.

Thanks.

Thanks.
Juraj JoobUser is Offline
New Member
New Member
Posts:26

--
12 Jan 2010 05:41 AM  
Hi JR,

thanks for idea to get Suboccurrence from Reference. But i don't undestand how to create References with Assembly.CreateReference(...).
I want References, because i have problem with selecting, deselecting, showing an hidding suboccurrences. I thing that references are objects, that can showing and selecting instead of suboccurrences.
Please, post me example, how to create References with Assembly.CreateReference(...) and how to select (SelectSet.Add(Reference?)) and hide suboccurrences.

Thanks.

Thanks.
Juraj JoobUser is Offline
New Member
New Member
Posts:26

--
12 Jan 2010 05:49 AM  
Suboccurrence has property Visible and i show or hide suboccurrence via this property. What i don't now is selecting and deselecting suboccurrence. It may by possible via reference (SelectSet.Add(Reference)).
Juraj JoobUser is Offline
New Member
New Member
Posts:26

--
12 Jan 2010 05:49 AM  
Suboccurrence has property Visible and i show or hide suboccurrence via this property. What i don't now is selecting and deselecting suboccurrence. It may by possible via reference (SelectSet.Add(Reference)).
You are not authorized to post a reply.

Active Forums 4.2
Copyright © 2011 JasonNewell.NET