![]() |
#1
|
|||
|
|||
![]()
Hi,
i have 5 groups of objects that i always (50 times a day) need to rearange from Stage 1 to Stage 2 2 and vice versa. Is it possible to remember the (Stage 1) position of each of the groups even afrer i modify them (add, remove, reshape objects from the group)and when is needed to go back to Stage 1 ? Please help me, Thank you Last edited by ivelink; 17-10-2005 at 12:29. |
#2
|
|||
|
|||
![]()
Sounds like Stage 1 is a template that you start with. Couldn't you open up the Stage 1 file, make your changes, then instead of Saving, you use Save As. That way, Stage 1 will always be the same for you to open and use as your starting point.
If that won't work, maybe you could make your Stage 1 as a sep Layer, then you could always lock it and make it invisible until you need it later. You copy it to a working layer that you alter, when it's time to start over, you delete the working layer and copy a new fresh layer based on the Stage 1 Layer and start over. Just throwing some ideas around Shaddy |
#3
|
|||
|
|||
![]()
no this is about the position of this pannels
|
#4
|
|||
|
|||
![]()
no this is about the position of each pannels.
|
#5
|
|||
|
|||
![]()
I'm not clearly understand what for, but I think anything about. The groups, like any shape, have a property named Properties, where you can store any custom data visible and handle through macros only, and query back later. With use of this you may write two separate macros (or a combined one with any userform), one for storing the actual position with group or shape, and another to query the Properties content to do something with. The only problem, if you ungroup a group, its custom data will be lost, even if you group again. (The groups looks like shapes. Them properties, e.g. StaticID, remain while they "live".) Ok, too much blabla. Examples:
Code:
Sub StorePosition() ActiveShape.Properties("OrigPos", 1) = ActiveShape.PositionX ActiveShape.Properties("OrigPos", 2) = ActiveShape.PositionY End Sub Sub RestorePosition() If ActiveShape.Properties("OrigPos", 1) <> "" Then ActiveShape.PositionX = ActiveShape.Properties("OrigPos", 1) ActiveShape.PositionY = ActiveShape.Properties("OrigPos", 2) Else MsgBox "Position not stored yet", vbExclamation, "Restore position" End If End Sub Code:
Sub StoreGroupsPosition() Dim s As Shape For Each s In ActivePage.Shapes If s.Type = cdrGroupShape Then s.Properties("OrigPos", 1) = s.PositionX s.Properties("OrigPos", 2) = s.PositionY End If Next End Sub |
#6
|
|||
|
|||
![]()
Ah, exuse me, I forgot. Third problem is if the origin point of the document has change (e.g. you move the rulers corner with mouse), then the similar effect happen... Avoid the same way, so may store .Properties("OrigPos", n) , where n = 0, 1, 2, 3, 4, ...
|
#7
|
|||
|
|||
![]()
Thank you very much Petig
What if i use only powerclips. This is an option for me |
#8
|
|||
|
|||
![]()
Makes me glad, if it helps.
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Position inch to mm | GoodLook | CorelDRAW/Corel DESIGNER VBA | 2 | 11-11-2008 01:47 |
Relative position with group | RichT | CorelDRAW/Corel DESIGNER VBA | 12 | 19-10-2005 16:15 |
Create a Group | shelbym | CorelDRAW/Corel DESIGNER VBA | 1 | 18-03-2004 20:12 |
Need help accessing objects in a group | ama | CorelDRAW/Corel DESIGNER VBA | 5 | 20-02-2004 12:28 |
Getting the mouse position | Rick Randall | CorelDRAW/Corel DESIGNER VBA | 1 | 04-12-2002 10:29 |