I am a brazilian student and I work on a research Project where I need to develop plug-ins for Autodesk Revit.
In the midst of my research, some doubts have arisen.
How can I do to insert into a Revit family a shared parameter/project parameter in date/time format ?
Use a string and format it any way you like. Revit parameters do not provide built-in support for date and time.
Related
I don't know anything about TalenD but have to work,so if anybody can help me out in letting me know how to create mapping and transfer data from suppose a txt file to .xls.
Thanks In advance
You need to find out the format of the txt file.
Then you need to find the appropriate talend input component and read in the data.
You should make clear what your specification of your output format are.
For example if you need conditional formatting or complicated dynamic formulas, you need to find a good Talend output component, for example tFileExcelSheetOutput [1].
Otherwise you could use the standard tFileOutputExcel component.
You would use tMap to map the input to the output and depending on your transformation requirements you might also need additional components.
I would recommend looking at Talend on demand seminars which should be freely available from their website to get yourself familar with Talend Studio. Then you can consult the component reference, which is also integrated into Talend Studio.
If you need further assistance you can describe what you tried and what part exactly doesn't work.
[1] http://talendforge.org/exchange/index.php?eid=1257&product=tos&action=view&nav=1,1,1
I have to use Fortran for some calculations using data from NetCDF files. And, depending on user selections, I need to select only one or some months from each year.
The dates in the NetCDF file are coded sometimes as "months since XXXX-XX-XX", other times as "days since XXXX-XX-XX", others as "hours since XXXX-XX-XX XX:XX", etc.
In addition, these have to be interpreted as belonging to a certain type of calendar, which can be Gregorian, Julian, proleptic Gregorian, 360-day, etc.
After many searches I have a plan to attack this problem, but want to ask the experts before.
My plan is as follows:
Use the UDUNITS package to convert the date information contained in the NetCDF file, to a Julian/Gregorian date. For this, I have to:
Bind the C code of UDUNITS to Fortran.
Convert the date obtained, to the desired calendar. For this, I think that I have to use a calendar package. Which would be a good choice?.
Do you agree with this?
I think I have found a good solution: the cdi libraries, developed by the Max-Plank Institute and distributed under the GNU GENERAL PUBLIC LICENSE Version 2.
It defines the following types of calendars: CALENDAR STANDARD, CALENDAR PROLEPTIC, CALENDAR 360DAYS, CALENDAR 365DAYS and CALENDAR 366DAYS.
This seems to be a very proven code, since it is used by cdo, a widely used tool that manages netcdf files.
I am working with a partner who is producing a delimited file for me. The dates are formatted as:
2013.07.06 AD at 01:00:00 GMT
The other company doesn't really have an IT department, so they can't tell me where the format came from. Assuming it is a standard date format, does anyone know which library or database engine would produce this format without a custom format string?
Thank you in advance.
UPDATE:
The partner in question was able to get an answer. For reasons that make no sense to me, the underlying software, written in Java, explicitly formats the date this way, with the " at " and era and time zone indicators. A rather strange choice for a file that is supposed to be consumed by a computer program with no human interaction - they produce a beautiful, human-reasonable Excel file from the same data.
Anyways, thanks for looking and commenting.
I'm using liferay (6.1) to make my portlets and right now I'm using dynamic data lists to define my data definition.
Is there anyway to add new Data definition fields?
Instead of the calendar date I want to add hours, minutes and seconds in the format of hh:mm:ss
I don't think there is an easy way to extend DDL available field types.
DDL Field types are hardcoded into the code (take a look at com.liferay.portlet.dynamicdatamapping.storage.FieldConstants), so you'll need to use the ext-plugin to change that; also, the JSPs are a little hairy.
So, while possible, I would expect the task to be quite complex.
I want to import old blog posts into Orchard CMS's blog module.
These are not contained in any xml format, if I try to add them manually then my posts display by creation date which ruins the order of original creation date of my blog. I noticed with Windows Live Writer I can set the Publish date but this still does not effect the Creation date.
There is a module called BlogML, but my blogs are not in RSS format. I see the BlogML.xsd is here http://blogml.org/, but is there some software I can use to generate the correct XML which I can then import into Orchard? And will this fix the creation date at all? I think I may be left in creating a custom type say 'imported blog' and add extra fields on which I can sort by.
If you are so worried about the creation date, you could just go into the database manually and change the creation date for each blog entry. Would take a lot less time than anything else.