Jump to content

Recommended Posts

Posted

Hi,

 

I converted a pdf file into dwg. In this new file a point has become a group of 2D polyline and not a sigle entity. This conversion is necessary because I have to work in autocad.

 

My problem is that I have to search in this dwg all of this "points" and write a text next to. Is possible to write a VBA program for autocad able to do this? If the point was a single point, it wouldn't be a problem, but in this case...I dont' know!

Posted

I understand you have 2015 but if you post a dwg we can try a pdf into 2018 and see what we get. Post a sample dwg.

Posted

here is the file http://www.filedropper.com/3points

As you can see there are 3 points, made by many Polyline2d. My purpose is to write a word next to them every time the code will find this entities in a dwg.

Posted

Consider that my code should find not only "points" but also other kind of these group of polylines (whose boundary shape may be different). So it could be useful if the code, as first step, required to specify the shape to be searched inside the dwg.

Posted

The pdf file doesn't matter because the code must work in autocad VBA with the figures that you can see in the file attached. The program must recognize the point (as group of polylines with that shape) and mark/write text like "this is a point"

Posted (edited)

May have found a way using Lee-mac's Outline.lsp you can create a pline representing the balls, only problem is it is a manual process. You can then get a centroid of this pline which will aproximate the centre.

Edited by BIGAL
Posted
The pdf file doesn't matter because the code must work in autocad VBA with the figures that you can see in the file attached. The program must recognize the point (as group of polylines with that shape) and mark/write text like "this is a point"

Why ?????

I recommend to watch less news on TV. You will trust people more.

From the PDF can be imported so that the points were hatching.

A hatch can be found in the drawing and make the program.

You incorrectly import PDF.

Or attach the PDF for checking or mission Impossible.

 

And attach an example of how there should be a new text.

Give all the raw data and an example of the final result.

Posted

Maybe because the pdf file is copyrighted, and I can't share?

 

I was thinking of something like Matlab scripts that analize images' pattern/shape, but in visual basic I don't know how to apply it

Posted

You can make your example.

Here is my example.

Otherwise, this is incomprehensible.

 

There is no initial data, no examples, no example of the final result.

How can we help you ? We have nothing to work on.

import.dwg

sample-Model.pdf

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...