Does anybody know if there might be a routine to add xdata to a polyline (ASCII string in particular) by selecting existing text instead of having to type the text when prompted to do as the existing attach Xdata express tool requires? I know I could copy and paste text, but I have several sets of text that needs to be added to several hundred polylines and being able to select existing text instead of typing or having to copy and paste each text string would be very beneficial.
on one side: no, I don't know a ready-to-use-tool that does that. But it's not so much work to create it.
BUT: What is the reason that you want to use XDATA? As we are here in the forum for Map3D it might also be to think of using Object-Data and not XDATA.
The most important differences are:
- alfred -
We use object data for our own purposes, but these polylines are being supplied to someone who uses xdata for analysis through SurvCadd. We don't usually change up the way we do things but we are trying to accomodate their needs without having to have them change their processes.
if there is an application that needs XDATA on objects than I think that it has some restrictions or some rules of how they structure their XDATA. It's not as easy as "write text to XDATA" as also XDATA can be structured in many different ways.
Check their structure (upload a drawing with such a filled sample-poly), let me know what AutoCAD-version you are running and if you have installed VBA for AutoCAD (and upload a drawing that shows what you currently have). Maybe I have some minutes.
- alfred -
The new block.dwg is what they sent us with attached xdata for what they are currently using. I attached some xdata to a polyline using express tools and sent it to them to make sure that they were going to be able to use it in the same way and they were.
We need to be able to attach owner name (i.e. - C.W. Hoskins' Heirs) and tract and contract information (i.e. - TR1006_200204) as string xdata to our polylines and to retype this every time we have to attach it using the current express tool opens the door to errors that we would like to eliminate.
The testdata.dwg is a small sample of what we usually use. Everything besides the object data is text that we have added to adapt to what the people we are working with are used to and I guess need for their purposes. We also attach our object data to the polylines but this is not done in this drawing.
I am currently working in AutoCAD Map 3D 2012. I do not believe that we currently have VBA installed, but probably wouldn't be a problem to install if needed.
Let me know if you have any other questions.
first question: 32bit or 64bit?
second question: do you know that as long as these two text-objects are single/separated objects the full automation is not really possible? You have to click every single text-object.
If you would have created these two text-objects as additional attributes within your block "ID-CO" the way to full automation would be possible (you would not have to select every poly and every text).
- alfred -
>> If full automation would be possible, then we can add those lines to our existing atribute blocks, no problem!
What is the source data that you can say that? Because if it is easy for you to do the conversion from two textlines to the block-insertions I guess your data-source is not this file?
Well, when you have done that for the sample-data upload the new drawing with the new block-structre. I will then try to send you the conversion to XDATA as soon as possible. (hurry up. it's 7:30pm for me)
- alfred -
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.