Transfer Project Standards - Postable Command

Hi Everyone,

I’m not finding many results on this topic, so I need to start a new topic.

Is there a way to transfer project standards via dynamo? At the very least I would like to queue the user to transfer project standards.

I am running anywhere from between 5-10 consecutive scripts in order to standardise external models according to our data structure and project standards.

If I knew how to use python, I wouldn’t have to ask. :frowning:

Cheers,
Matt

I think I was able to answer my own question.

My previous issue was purging unused elements, to which I was able to use a code snippet from here. Because purging is typically recursive, I could just string 3-4 python scripts to run consecutively.

Anyways…I just took the code for purging and modified the command to “ID_TRANSFER_PROJECT_STANDARDS”

it turns out that postable commands are pretty damn intuitive.

import clr
clr.AddReference(‘RevitAPI’)
clr.AddReference(‘RevitAPIUI’)
import Autodesk
from Autodesk.Revit.UI import RevitCommandId
from Autodesk.Revit.UI import UIApplication
from Autodesk.Revit.UI import ExternalCommandData
clr.AddReference(‘RevitServices’)
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

doc = DocumentManager.Instance.CurrentDBDocument
uiapp = DocumentManager.Instance.CurrentUIApplication

RunIt = IN[0]

if RunIt == True:
CmndID = RevitCommandId.LookupCommandId(‘ID_TRANSFER_PROJECT_STANDARDS’)
CmId = CmndID.Id
uiapp.PostCommand(CmndID)
errorReport = ‘Success’
else:
errorReport = ‘Set IN[0] to true’

#Assign your output to the OUT variable
OUT = errorReport

Hey @m.owens,

where can i find a list of all Postable commands like "ID_TRANSFER_PROJECT_STANDARDS”

Okay, thanks. But i am missing the command “ID_PLAYLIST_DYNAMO” to access Dynamo Player. How do i find that one?

Hi Laurin,

Ich am by no means a Postable Command Expert.

Here is what I found by searching “Playlist”

image

1 Like

okay thanks @m.owens

and if i want to give it a list of the categories i want to copy without the menu?