CorelDRAW X3 :: Create Curve With VBA Macro With Same Length Of Segments
Jun 10, 2013
I try to create a curve with 3 or more equal segments. When I draw random curve using the "Freehand tool" I always get curve with several not equal segments.So how can I create a curve using VBA Macro so that the curve has equal length of the segments.I attach two pictures with curve that i have and with curve that I need to have.
I have one LW polyline consisting lines and one or two arcs. I want to calculate length of all line segments and arc segments separately and the resulted values to be shown as attributes (seperate attributes for line segments and arc segments).
Here's a macro I've used for quite some time. Feel free to use or modify as needed. Install, select text and run. Hold shift and the selected text will round/curve more.
Why I created? I do a lot of graphics that need the top line of text to be curved. I can easily select the top line and press a button and the macro curves it upwards. If I need more curve I hold shift and run. If I need more or less curve still, I make the item in question, the text, larger or smaller. All done by eye and it's fast.
#If VBA7 Then Private Declare PtrSafe Function GetAsyncKeyState Lib "user32" (ByVal vKey As LongPtr) As Integer#Else Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer#End IfPrivate Const VK_SHIFT = &H10Public Function ResetKeyStatus(Optional nada As Boolean) As Boolean [Code] .........
Can CorelDraw X4 calculate the length of a curve, meaning if I have an organic shape or curve, can it calculate the true length of the line if you follow the path. (think miles on a road)
I'm trying to estimate the time it would take a CNC machine to cut along an exported path.
I´m looking for opportunities to can modify a polyline with 4 or more segments in a polyline with arc. I think it´s possible to pick start and end segment first and than all straight segments to will be in arc segments.
Now that SP2 is out and we can delete all in one sweep, is it possible to create a macro that would automatically delete all color styles as soon as any file is open? I never use that feature and would gladly pay for such a macro.
Is it possible to create a custom stroke that doesn't scale to the length of the line you assign it to? I am trying to create a stroke that looks like a chain but when I create a custom brush, I have to almost create the brush pattern the same length as the stoke it gets applied to in order to avoid the chain links bunching up or being grossly stretched out along the assigned path.
Is there a setting or some other function that can accomplish this? Is there an easy way to assign a shape to along a path other than blend?
In the end I want to be able to assign a premade pattern to a line without that pattern being distorted or scaled along the path it is assigned to.
I am try to create a function that compute the length of a line such as the picture shows on top. The code I have now only getting the straight line distance. It's there a way to compute the curve distance?
How to sort curve table data by parcel and then curve length? Out here in Oregon, one of the standard ways of defining a curve table is to show the length of curve and have each curve in the parcel grouped together.
I have not figured out a way to do this in C3D. At one point, Sinc had started working on the issue for us, but I don't think he ever got anywhere with it (or at least it didn't get into his add on.
how (or if it is possible) to create a profile that contains mutliple segments. THe scenario I have is a proposed profile that ties to existing grade and then picks up again at existing grade some distance down the alignment.
The only way I can find to do this now is to create it all as one profile with no breaks and then go back and remove the profile segments in between the existing grad tie ins. Except when I remove a segment from my profile all of the labels beyond the first segment fo away.
In the past I have been creating multiple profiles but seeing as how long this surface alignment is and how many breaks in the proposed profile there are I would rather have just one proposed profile than several, especially when labeling existing/proposed elevations in the data band.
Here is an example before a segment is removed:
And here is an example after the segment was removed, the green labels are just polys and mtext not C3D entities
Civil 3D 2012 Windows 7 Service Pack 1 Intel Core i7-2600 CPU 16GB RAM
I just received a pdf containing a drawing that has been exported by autocad. The drawing consinsts in hundreds of segments.
Is there a way to recreate the drawing (at least the perimetr/bounds) easily? In coreldraw I select all objects and click effect>boundaries ... a new fillable (closed path) object is created on top of the existing segments. The new object reflect perfectly teboundaries of the selected boundaries.
Is there a way to do this in Illustrator (cc)? (similar to coreldraw create boundaries).
I saved up for several months to buy a full version to replace my student version, however now I have the full version it seems to lack a feature that is vital to the work I am creating.
in student I can right click add node to existing line and right click add a second node to the same line then right click anywhere on the segment and right click delete.......... I can't do this in the full version as delete is grayed out.
I have to repeat step one and two and then right click on each new node and break apart THEN zoom in so I can see the node close up and click on it to delete the segment.....could this really be correct? I have saved and waited so long to get the full version and now it will take me 5 steps to do what only took 3 in the student version....I need this to be simple as this is what I do all day so I can create designs to be laser cut... I need a method to delete segments so I can join others in very very complex organic shapes.
I needed to join lines into a curve, and not being used to all the extra features of Corel over my old application.
I read of what seems to be a feature of closing different line segments, and it seems that Corel can join two different lines at their start and end point, and take on the characteristics of the first line selected and the help file displayed a pictures of what can be done. BUT I CAN'T DO THAT!
I am trying to do what is shown in the help file's "closing multiple line segments" right most image. Where two lines are closed with another and the new middle line is sort of shaped "in between" the two lines.
I included a file with a bitmap of the examples, and lines I traced for it, and what is happening when I try to join the curves with a bezier, both selecting both lines, and selecting start and end nodes.
How to divide an object like a box or a line in to equal segments. AutoCad has "Divide", where you pick how many equal segments and then the object and it puts points or grips at equal distance spots.
When we apply surface projection gradings to feature lines, we get locked vertices on the feature line wherever the grading transitions from cut to fill. In turn these vertices create segments in the feature line which influence any labels applied to the line. I don't want a bazillion segment labels on my FL. I only want segment labels between the physical vertices and elevation points. Is there a workaround or is an enhancement request in order?
How can you add the chord bearing, chord length, and tangent to an alignment table with the curve data in it? I have the length and direction but cannot figure out why the others will not load and update in the chart. I am using Autocad Civil 3D 2012
Autocad Civil 3D 2014 Windows 7 Prof. SP1 (64-bit) Precision T3500 Intel (R) Xeon(R) CPU W3550 @ 3.07 GHz 6.00 GB NVIDIA Quadro 4000
This is a macro I've been working on for a few days, what it does is it applies the selected transformation to each one of the selected objects individually. It rotates, scales and flips in both axes. I think this is a simple but useful workaround to the fact that Corel doesn't have a native command that does this.
I have a VB script that I created in excel that does a number of things. At some point I want it to open a series of variable Draw documents based on names and paths from columns in an excel document. This part works fine. However, I also want to perform a macro, created in CorelDraw, on said files once opened. This macro also works fine. The issue I am having is getting Excel to tell Draw to run the macro. I wrote the line with the same syntax I would use for telling excel to run a Word macro. IDK.
Set CorelDrawApp = CreateObject("CorelDraw.Application.15") CorelDrawApp.Visible = True Dim i As Long
I work in a trophy shop running laser engravers. I'm looking for a macro that would select everything on a page, flip it vertically, and do so throughout a multi-page document - I just had to do that manually for an order of 236 acrylics (all in one multi-page file!) and it - well - was a bit tedious I can make a macro to select all and flip - but I'm lost when it comes to getting it done throughout a file, I can only get it to do that a page at a time.
Looking for example macro that can create a new sketch, add a few lines and arcs, Then revolve the sketch around an axis to create a solid part. For example a shaft?
After starting my previous thread "What formula will work to achieve this result" I decided to post this new thread because I have changed my mind and will now be using the external Excel file that the "Extract Data" creates to do my calculations.
Here's what I would like to do: create a Macro [button] in Excel with the following conditions: * Sample of excel spreadsheet: * MANUF NoSUB No.DESCRIPTION** UNIT QUANTITY A123494456TYPE A, XXXX XXX * * * * EA** * * * 45 A423520374YA1AM, XXXXXXXXXX * **EA** * * * 55 A148231375TYPE B, XXXXXXXXX * * * EA** * * * 33 A146151725A1AAM, XXXXXXXXXX * * EA** * * * 67 A135621873TYPE A, XXXXXXXXX * * * EA** * * * 24
1. * * * CONDITION #1: IF "DESCRIPTION" TAB ["C" COLUMN] CONTAINS "TYPE A" AS PART OF TEXT/DESCRIPTION, TAKE THE "QUANTITY" TAB ["E" COLUMN] SPECIFIED ON THAT PARTICULAR ROW AND DIVIDE IT BY 20, ROUNDED UP TO NEAREST ONE.*
2. * * * CONDITION #2: IF "DESCRIPTION" ["C" COLUMN] CONTAINS "TYPE B" AS PART OF TEXT/DESCRIPTION, TAKE THE "QUANTITY" SPECIFIED ON THAT PARTICULAR ROW ["E" COLUMN] AND DIVIDE IT BY 10, ROUNDED UP TO NEAREST ONE.
3. * * * AUTOMATICALLY SAVE THE EXCEL FILE AFTER THIS MACRO HAS BEEN UTILIZED.
I would like a part, that if i place it into an assembly, that it asks for a parameter (for example the length).Parts in the content center have this featere (for example tubes). I think this has to do with the driven length in the content center.