Open chat AI

https://chat.openai.com/chat

Write a module for coral draw the draws a box 100mm by 400mm

Here is a sample module for drawing a box with dimensions of 100mm by 400mm in CorelDRAW:

Sub DrawBox()

'Declare variables
Dim boxHeight As Double
Dim boxWidth As Double

'Set the height and width of the box
boxHeight = 100
boxWidth = 400

'Create a new document
Dim doc As Document
Set doc = Application.CreateDocument

'Activate the document
doc.Activate

'Turn off the snap to grid feature
Application.SnapToGrid = False

'Turn off the snap to guides feature
Application.SnapToGuides = False

'Turn off the snap to shapes feature
Application.SnapToShapes = False

'Turn off the snap to points feature
Application.SnapToPoints = False

'Turn off the snap to intersections feature
Application.SnapToIntersections = False

'Turn off the snap to smart guides feature
Application.SnapToSmartGuides = False

'Create a new rectangle
Dim rect As Shape
Set rect = doc.ActivePage.CreateRectangle(0, 0, boxWidth, boxHeight)

'Set the outline color to black
rect.Outline.Color.RGB = RGB(0, 0, 0)

'Set the outline width to 0.25mm
rect.Outline.Width = 0.25

'Set the fill color to white
rect.Fill.Color.RGB = RGB(255, 255, 255)

'Deselect the rectangle
rect.Deselect

End Sub
  • I can't get that code to run in CorelDRAW 2017 so I ran your prompt and oddly enough, it gave me a very short bit of code that did work..

    Sub DrawBox()

    Dim objRectangle As Shape
    Set objRectangle = ActiveLayer.CreateRectangle(100, 100, 100 + 400, 100 + 100)

    End Sub

    • Gezz I hate website that don't follow standards LIKE THIS ONE.

      Just wrote a long reply then thought I'd check what I was saying and control clicked my link at the top for a new tab and lost the page.

      There's a bit to say here but I'm not up for typing it again tonight.

      Short version is ask it to write code that could be done in more that one way, If/else or for as example.

      I suspect the better the pseudo code you input the better the output.

      • Humm... seems one of the keys to trying this is to ask for "code" and not a CD Macro. It is referencing VBA and not the specific CD code library.

        Do you know how to write code to select blue boxes

        In CorelDRAW, you can select objects using the Select by Attributes feature, which allows you to select objects based on various criteria, such as fill color. Here is an example of VBA code that selects all objects with a blue fill color:

        Sub SelectBlueBoxes() ' Select all objects with a blue fill color Dim obj As Shape For Each obj In ActivePage.Shapes If obj.Fill.UniformColor.CMYKColor.Cyan = 100
        And _ obj.Fill.UniformColor.CMYKColor.Magenta = 0
        And _ obj.Fill.UniformColor.CMYKColor.Yellow = 0
        And _ obj.Fill.UniformColor.CMYKColor.Black = 0
        Then obj.Selected = True End If Next obj
        End Sub

        This code loops through all the shapes on the active page, and for each shape, it checks if the fill color is 100% cyan, 0% magenta, 0% yellow, and 0% black. If it is, the shape is selected.

        It's important to note that this code snippet is specific to the CMYK color space, but you could also use RGB color space.

        This code can be added to a macro in CorelDRAW and run to select all the blue boxes on the active page.

        You can also use CorelDRAW's built-in Select by Attributes feature to achieve the same selection.

        • Who have you been asked the most questions about? Corel Draw or Adobe Illustrator?

          I am unable to track the number of questions I have been asked about specific topics, but I am familiar with both CorelDRAW and Adobe Illustrator. They are both vector graphic editing software programs used by professionals and amateurs to create and edit graphics, logos, and illustrations. Both are widely used in the graphic design industry, but Adobe Illustrator is considered to be the industry standard.

          GAWD that's the perception issue that I keep telling you lot needs to be dealt with spat out by AI.
          • How do you decide what is "industry standard"?

            The term "industry standard" generally refers to a product or technology that is widely adopted and recognized as a benchmark within a particular industry. In the case of graphic design software, the industry standard is determined by factors such as popularity among professionals, compatibility with industry workflows, and support from major companies and organizations. Additionally, the industry standard is also determined by the number of users, the number of companies that use the software, and the number of professionals that are trained to use it.

            Adobe Illustrator has been around for a long time, used by professionals and it has become a common tool across the graphic design industry. It is widely used in print and digital media, and its vector editing tools are considered to be some of the best in the industry. Due to its popularity and wide adoption, Adobe Illustrator is considered to be the industry standard for vector graphic editing software.

            What is the "industry standard" for video editors?

            In the video editing industry, the "industry standard" typically refers to Adobe Premiere Pro and Avid Media Composer.

            Adobe Premiere Pro is a widely used, cross-platform video editing software developed by Adobe Systems. It is used by professionals to edit films, television shows, and other video content. It offers a wide range of tools and features, such as multi-cam editing, motion graphics, and color correction, making it a versatile option for video editors.

            Avid Media Composer is a professional video editing software developed by Avid Technology. It is widely used in the film and television industry, and is considered to be a high-end option for professional editors. It offers advanced tools for editing, audio and visual effects, and color correction, making it a powerful option for experienced editors.

            Both Adobe Premiere Pro and Avid Media Composer are widely used in the industry and are considered to be the "industry standard" for professional video editing.

            What industry are you using for your video editor appraisal?

            When I mentioned that Adobe Premiere Pro and Avid Media Composer are considered to be the "industry standard" for professional video editing, I was specifically referring to the film and television industry. These software are widely used by professional video editors in the film, television, and video production industry to create, edit and produce high-quality content. They are both powerful, professional-grade software that offer a wide range of tools and features to meet the demanding needs of these industries. They are also widely adopted and supported by production companies, studios and post-production houses.

            Dare I say... should we ask a PC/MAC question? (evil grin)

            What hardware and operating systems are used in publishing?

            The hardware and operating systems used in publishing can vary depending on the specific type of publishing and the size of the company. However, in general, publishing companies tend to use powerful, high-performance computers and servers to handle the large files and high-resolution images used in the industry.

            For desktops, most publishing companies use powerful workstations with fast processors, large amounts of RAM, and high-end graphics cards. These workstations are typically running on a 64-bit version of Windows or MacOS, as these operating systems are widely supported by publishing software.

            For servers, publishing companies often use powerful servers with large amounts of storage and fast processors, running on a 64-bit version of Windows Server or Linux distributions like Red Hat Enterprise Linux, Ubuntu, or CentOS. These servers are used to store and share large files, such as images and videos, as well as to run databases and other back-end systems.

            In addition to this, for printing and digital production, many publishing companies also use specialized hardware such as large-format printers, digital presses, and cutting-edge proofing devices, which are manufactured by companies like Epson, Canon, HP, Xerox, and others.

            It is worth noting that, in recent years, with the increasing use of cloud-based solutions, some publishing companies are moving away from traditional on-premise hardware and operating systems, and are instead using cloud-based infrastructure and software-as-a-service (SaaS) offerings, such as Adobe Creative Cloud, to create and manage content.

            It even managed to talk about Adobe when the question is operating system related.

            What feature does Corel Draw has that Adobe Illustrator lack?

            Both CorelDRAW and Adobe Illustrator are powerful vector graphic editing software programs, and they have many similar features. However, there are a few key features that CorelDRAW has that Adobe Illustrator lacks:

                Photo-Paint: CorelDRAW includes a built-in bitmap image editing program called Photo-Paint, which allows users to edit and manipulate raster images. Adobe Illustrator, on the other hand, does not have a built-in raster image editor and users must use a separate program like Photoshop to edit bitmap images.

                Support for multiple pages: CorelDRAW has the ability to work with multiple pages in a single document, similar to a page layout program. Adobe Illustrator, on the other hand, is primarily focused on creating single-page vector graphics.

                Support for CMYK color model: CorelDRAW has built-in support for the CMYK color model, which is used in the printing industry. Adobe Illustrator primarily supports the RGB color model, which is used for digital displays.

                Advanced Powerclip: CorelDRAW has a feature called Powerclip, which allows users to place one object inside another and control the transparency and blending of the objects. Adobe Illustrator has a similar feature called Clipping Mask, but it's not as powerful.

                Enhanced support for web graphics: CorelDRAW has built-in tools for creating and exporting web graphics, such as GIFs and JPEGs, whereas Adobe Illustrator is more focused on print graphics and the user may need to use other software to create and optimize web graphics.

            It is worth noting that while CorelDRAW has these features that Adobe Illustrator lacks, Adobe Illustrator has many features that CorelDRAW doesn't have such as, advanced typography, better integration with other Adobe software, and a more extensive add-on library.

            Don't use Illustrator to know if that is a fair list.

            • What is the most requested feature for new versions of Corel Draw?

              I do not have information about the most requested features for new versions of CorelDRAW as my training data cut off in 2021 and my knowledge is based on publicly available information. However, historically, CorelDRAW users have requested features such as improved performance, new tools and capabilities, and better integration with other software. Some users have also requested improved support for web graphics, enhanced support for the CMYK color model, and better support for multi-language typography.

              It's also worth noting that CorelDRAW has a dedicated community where users can suggest, discuss and provide feedback, this community can be a valuable source of information about users requests and feedback, they can also provide support, tutorials, and share their work with other users.

              It is best to check with CorelDRAW's official website or customer support for the most recent and accurate information about new features and updates for the software.

              • What software would Corel Draw users like to be more compatible with?

                CorelDRAW users have historically requested better compatibility with other software, particularly other graphics and design software. Some users have requested better integration with Adobe Photoshop and Illustrator, which are widely used in the graphics and design industry. The integration would allow users to easily transfer files between the two software and take advantage of the unique features of each program.

                Users have also requested better support for file formats such as PDF, EPS, and AI, which are commonly used in the industry, as well as better support for web graphics and animation.

                Users have also requested better integration with other tools such as project management and collaboration software, it would allow them to work with other members of a team, share and review files, and keep track of project progress.

                It's worth noting that CorelDRAW has been continually updating their software to improve compatibility and integration with other software and technologies, and it's recommended to check with their official website or customer support for the most recent and accurate information about compatibility with other software.