Label Block for Views - Field for xref filename

Label Block for Views - Field for xref filename

Crass
Collaborator Collaborator
955 Views
6 Replies
Message 1 of 7

Label Block for Views - Field for xref filename

Crass
Collaborator
Collaborator

Hello - I'm trying create a field in my drawing title label block that would show the name of the source file that contains the detail view. 

 

Crass_0-1698070039980.png

 

I've tried using filename but it just provides the name of the sheet file, not the detail (xref) file.

Crass_1-1698070257254.png

 

Any ideas? Thanks!

 

 

-----
AutoCAD 2018/2021
AutoCAD Civil 3D 2021
0 Likes
956 Views
6 Replies
Replies (6)
Message 2 of 7

paullimapa
Mentor
Mentor

Sounds like you want to do this 

https://www.cadforum.cz/en/qaID.asp?tip=5930


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 3 of 7

Crass
Collaborator
Collaborator

Hi @paullimapa - Thank you for the response. I guess that is what I'm asking though I don't see from the link how to actually implement the solution. I'm not sure how to associate with the object. Obviously having to "link" this each time would not make this useful. I plan on using sheet set manager's Place Callout Block to generate the view and associated drawing title / tag

Crass_0-1698073234740.png

 

-----
AutoCAD 2018/2021
AutoCAD Civil 3D 2021
0 Likes
Message 4 of 7

cwr-pae
Mentor
Mentor

Place view label block labels the view, what you are asking for and name the view automatically. Call out blocks are to reference the view on other sheets.

Message 5 of 7

Crass
Collaborator
Collaborator

You are right @cwr-pae. I think I actually screenshoted the wrong command. Oops. "Placing a view" automatically inserts the correct Xref containing the view so I figured there would be a way to extract the Xref filename with a field. Maybe not? Sorry if I'm confusing in my explanation. 

-----
AutoCAD 2018/2021
AutoCAD Civil 3D 2021
0 Likes
Message 6 of 7

cwr-pae
Mentor
Mentor

I don't think you can set up a predefined attribute to read an xref name in a block to be inserted. How can the program know which xref to choose? You can select the xref name afterwards as an object type.  In the following image '12071 details - box culvert' and '12071 details - Concrete Joints' are xref'd files. The others are block in those files. 

cwrpae_1-1698156031200.png

This image shows the options from sheet sets that can be used as place holders with no possibility to reference xrefs. It may be a 3rd party solution, a solution using property sets or lisp exists. I would post on the C3D customization forum for help with that latter.

cwrpae_2-1698156422571.png

 

 

0 Likes
Message 7 of 7

Crass
Collaborator
Collaborator

Thanks @cwr-pae for the follow up. I assume you are right. The reason I thought this would work is that when you "place on sheet" you are selecting the view in an Xref so therefore I assumed that the parent Xref filename could be extracted. The view exists within an Xref.

Crass_0-1698233866613.png

Thanks for your input.

-----
AutoCAD 2018/2021
AutoCAD Civil 3D 2021
0 Likes