CorelDRAW Graphics Suite 12 :: VBA - Getting Name Of Objects Resulting From Break Apart
Aug 8, 2011
Im writing a script that will use the contour tool and then break the resulting contour apart, change the outline of the contoured object and then regroup both objects.
heres what I have so far:
Sub contour_outlines() Dim OrigSelection As ShapeRange Set OrigSelection = ActiveSelectionRange Dim width1 As Double Dim height1 As Double OrigSelection.GetSize width1, height1 Dim minSize As Double If width1 <= height1 Then minSize = width1 If width1 > height1 Then minSize = height1 Dim WhiteOutlineThickness As Double Dim BlackOutlineThickness As Double 'WhiteOutlineThickness = minSize * 0.33 WhiteOutlineThickness = minSize * 0.5 'BlackOutlineThickness = minSize * 0.49 BlackOutlineThickness = minSize * 0.5 'apply contour Dim eff1 As Effect Set eff1 = OrigSelection(1).CreateContour(cdrContourOutside, WhiteOutlineThickness, 1) ActiveSelection.Separate ActiveLayer.Shapes(2).Outline.SetProperties BlackOutlineThickness, LineCaps:=cdrOutlineRoundLineCaps, LineJoin:=cdrOutlineRoundLineJoin ActiveLayer.Shapes(2).AddToSelection Dim s1 As Shape Set s1 = ActiveSelection.GroupEnd Sub
So in this script Shapes(2) is the contoured object that I want to change the outline of. Im guessing however it is only called shapes(2) because there was only 2 objects in the document when I wrote this script, (starting with one). In fact, if i start with a document with more than just one object, the outline change doesnt work.
I need to either leanr how to get a count of all objects in the document and assume the highest number will be the last created object and will thus be the one I need, or perhaps there is a way to instantiate the contuored shape when i call ActiveSelection.Seperate. something like
dim myContouredObject as shape
OriginalSelection + myContouredObject = ActiveSelection.Seperate
I'm sure the above wont work, just trying to be a bit more explicit about what im trying to do.
So, basically, how do i get the name of one or all of the objects resulting from a break apart?
View 7 Replies
ADVERTISEMENT
Jun 8, 2012
I am using Corel draw x6 to build a new website for my company. I have tried everything I can find but after exporting to html The resulting web page does not fill the different size screens in the office.
View 7 Replies
View Related
Apr 13, 2011
I have created a symbol in CorelDraw X5 on a Mac using parallels.
The symbol is on a layer which is not locked, and the object which has become a symbol was grouped before I made it into a symbol. The boundary marks changed from black to blue.When I try to select Edit/Symbol/Break link, the Break link command is greyed out.
View 6 Replies
View Related
Jun 4, 2011
I am trying to use the break apart blend tool and every time it says corel has a problem & shuts down my X4?
View 5 Replies
View Related
Nov 12, 2013
when I switch tab once at the end of the line sits the line break outside of the paragraph text frame..The background color so then runs out of the frame.A wish at left line intent (or right) it should be possible to fill these also with the background color and a function that assigns every second line is a background color..
View 2 Replies
View Related
Feb 2, 2011
The imported file is probably from Illustrator. The vector element in question is text converted to curves with a CMYK bit map fill. CorelDraw X5 seems unable to extract the bitmap fill from the vectors. What's up with this, is there anyway to extract the bitmap fill?
View 3 Replies
View Related
Aug 3, 2011
Just a guess but with 64 bit Coreldraw maybe we would be able to Print Merge large files without crashing or having to break it into digestible bits.
Do vector conversion of complex images.Use Coreldraw like a publishing program, - kick Indesign
Computer memory is no longer the issue - 32 bit computer programs are.Until then I will stay with X4. run in Windows 7, 64 bit with 12 Gigs RAM.
View 1 Replies
View Related
Aug 18, 2011
I often produce graphics in CorelDRAW, export it as en eps file and insert it inside a MS Word document as an image and finally convert it to pdf. This way my vector graphics (often linedrawings with or without fill) usually is preserved in the final pdf document. I can zoom in and the lines keep on displaying perfectly sharp. This is important, since it easily looks bad when thin lines are turned into bitmaps, even when watched from a distance.
Now, in some graphics I created today, I had a circle with fountain fill and outline (symbolizing a sphere) put behind a filled rectangle, which had a uniform transparency applied to it. In the resulting pdf file, the 'sphere' was turned into bitmap. Inside CorelDRAW everything was vector graphics, but something was loast in the process. what happens with the graphics in the different steps in the process and eventually could explain a workaround to make everything look as vector in the final pdf file.
View 14 Replies
View Related
Aug 14, 2011
I have created the following:
However, I cannot fill the objects. I am guessing that they are not actually objects, and just lines on a page.
View 9 Replies
View Related
Nov 8, 2012
I am fairly new to CorelDRAW and I am having an issue with layering objects that I can't figure out. The problem I am having is this:
I have two line drawings, and one sits on top of the other. Normally, the object in the back is partially hidden by the one in the front. However, I have just done a drawing where the object in the back is NOT partially hidden by the one in the front, and it looks like they are both on the same layer. What happened? I am not sure if I inadvertantly changed a setting, but I can't seem to figure out how to hide that back layer. I have tried using the 'order' function, and that usually works, but for some reason it is not working this time.
View 8 Replies
View Related
Oct 28, 2012
aligning objects...How to distribute some objects that they are 2mm apart.
View 7 Replies
View Related
Oct 21, 2009
Is it possible to convert/open a CDR file to a CPT or PSD file such that the objects are editable. Specifically I need the text to be editable in the resulting CPT or PSD file. I'm using X3.
View 7 Replies
View Related
Aug 27, 2012
As when drawing cartoons... example:
- Draw two circles & fill them with the same color.
- Overlap them
- You see the overlapping line of the top circle.
- How do you hide just that part of the line so it appears as one object of the same color
- while retaining the overall object outline.
View 10 Replies
View Related
Sep 19, 2012
Using CorelDraw X6.1
Having issues with exporting files to an .eps format - using "selected only" some of the objects that I have selected do not get exported - ie. they are missing from the .eps file altogether.
On top of that, most of my colours get washed out to a grey scale - I do work in spot colours.
I have tried f8, and tried reinstalling.
View 4 Replies
View Related
Jun 17, 2012
So picture that you have designed something in Corel. Let's say an invitation. I go to put text or a graphic on top, and nothing is going on top. My text is behind. Nothing i do works. (ex. ctrl-pgup, object in front of.... etc.)
Is there some feature that I possibly touched?
View 4 Replies
View Related
Oct 3, 2011
Im working with an image (pictured below) and I want to make all of the white bits clear, so as to allow whatever colour is behind to show through.
View 7 Replies
View Related
Dec 14, 2012
Since X6 I can't rotate any Barcode anymore. When I open X5 Files in X6 the barcodes are unreadable...
We need a patch Corel.
View 2 Replies
View Related
Jul 26, 2011
I have a series of images that have been designed - very basic shapes (a straight vertical line with a ball on top in which ascending numbers are placed in each one. So effectively each image is made up of 3 seperate parts and look like numbered lollipops. Each of these images are currently evenly spaced apart and formatted so the text is all properly aligned and sized etc - I would like to be able to copy certain groups of these images and paste them into a new working document which is fine, but I then need to somehow re-space them out to scale once they've been pasted in. So for example i have copied them in and they are 20mm apart to each other (as per my original drawing that i copied from) - is there a way of then altering this spacing so that for example so that they are all 33mm apart but still retail the original formatting properties so they are not stretched etc?
View 11 Replies
View Related
Oct 23, 2013
When I export a page as Illustrator CS4, I choose the option "Convert outlines to objects" but it doesn't seem to do what I expect. It does fix the issue of missing arrowheads on lines, but it doesn't convert the outlines to fills as I expected -- is that correct? I wish there was an option to convert lines to fills on export.
View 8 Replies
View Related
Sep 13, 2012
I am a screen printer making a leap into the world of CorelDraw. Loving it so far, especially the trace options. That being said, I have a piece of artwork that a client wanted me to scan in and trace to see how it would turn out. The image can be found here:
[URL]....
Problem I am having is the stick figure in front of the cross. The figure is being grouped with the cross...not allowing me to properly color the image and separate how I need it. The text needs to be red, the cross black, the hearts red, and the stick people white...will be going on a blue t-shirt. Am I looking at having to create my own lines...or am I overlooking/not thinking of an easy way to do this?
View 2 Replies
View Related
Feb 25, 2013
The pick too only creates a rectangular selection marque.
Is there any way to select objects with a freeform marque, or even to draw a shape and use that as the marque to select the objects within it.
I'm wondering if a macro / plugin is needed to do this.
View 3 Replies
View Related
May 31, 2011
How to convert all the outlines to objects at once or to applies particularly for selection only?
View 10 Replies
View Related
Sep 30, 2011
I love the function in Photoshop in which you can stroke a selection with a brush. Was wondering if that was possible in CorelDraw X4 as well. I know that we can put text on a path, but is that also working with objects?
Since I like making patterns, I would like to place and distrubute objects along a circle or hexagon shape (and other simple shapes).
View 8 Replies
View Related
May 4, 2011
1588.practise3.pdf
I am practising filling objects with color. I have attached a file of a design drawn freehand, completely as a random shape. Why I am unable to fill the top left part of the design (above the dark blue) with any color?
So far as I can tell, there are no gaps. Also I have used arrange/join curves to close any gaps. Whatever I try, I cannot get any color in to that area of the design.
View 16 Replies
View Related
Aug 15, 2011
I really want to learn how to wrap an object to a sphere... is there any way to do it? or a tool? For example is an arrow wrapping around a sphere?
View 4 Replies
View Related
Jun 3, 2013
Print preview shows objects spaced correctly. But when it prints them, it compresses them together on the page (but the objects are sized correctly).
When I print the same file from a different computer on the network to the same printer, the objects are spaced correctly.
Which leads me to conclude it's a setting in CorelDraw on the first computer. Also, I reset all the default settings in CorelDraw using the F8 technique, but that didn't solve the problem.
View 7 Replies
View Related
Mar 15, 2012
Is it possible.
CorelDraw X5 v. 15.2.0.686 Hot Fix 4 - Windows 7-64
View 2 Replies
View Related
Jun 3, 2012
I am stunned that CD still does not have feathering of vector objects-- Why would this be???? Is there a workaround?
View 10 Replies
View Related
Jan 9, 2012
I've never learned how to shade or highlight objects but I see that as the next step in my development. Where do I begin? Are there any tools or shortcuts?
View 3 Replies
View Related
Jul 23, 2012
I have several vector images made up into one large image in a cdr file & i am working in mm
What the easiest & best way to convert my one large image to pixels??
View 10 Replies
View Related
Jan 25, 2013
I often need to move (a group of) objects on a page, but with those objects I also need to move the guidelines that belong to this object. Is there a way I can lock guidelines to an object so that if I move the object, these guidelines move with it?
View 5 Replies
View Related