ElCidCampeador Posted July 27, 2017 Posted July 27, 2017 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! Quote
BIGAL Posted July 27, 2017 Posted July 27, 2017 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. Quote
ElCidCampeador Posted July 27, 2017 Author Posted July 27, 2017 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. Quote
ElCidCampeador Posted July 27, 2017 Author Posted July 27, 2017 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. Quote
ElCidCampeador Posted July 27, 2017 Author Posted July 27, 2017 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" Quote
BIGAL Posted July 28, 2017 Posted July 28, 2017 (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 July 28, 2017 by BIGAL Quote
maratovich Posted July 28, 2017 Posted July 28, 2017 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. Quote
ElCidCampeador Posted July 28, 2017 Author Posted July 28, 2017 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 Quote
maratovich Posted July 28, 2017 Posted July 28, 2017 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 Quote
Recommended Posts
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.